summaryrefslogtreecommitdiff
path: root/chromium/ui/base/clipboard/clipboard.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-03 13:32:17 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-01 14:31:55 +0200
commit21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (patch)
tree91be119f694044dfc1ff9fdc054459e925de9df0 /chromium/ui/base/clipboard/clipboard.h
parent03c549e0392f92c02536d3f86d5e1d8dfa3435ac (diff)
downloadqtwebengine-chromium-21ba0c5d4bf8fba15dddd97cd693bad2358b77fd.tar.gz
BASELINE: Update Chromium to 92.0.4515.166
Change-Id: I42a050486714e9e54fc271f2a8939223a02ae364
Diffstat (limited to 'chromium/ui/base/clipboard/clipboard.h')
-rw-r--r--chromium/ui/base/clipboard/clipboard.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/ui/base/clipboard/clipboard.h b/chromium/ui/base/clipboard/clipboard.h
index 82d35fe8f88..11ce126c3d8 100644
--- a/chromium/ui/base/clipboard/clipboard.h
+++ b/chromium/ui/base/clipboard/clipboard.h
@@ -58,6 +58,8 @@ class COMPONENT_EXPORT(UI_BASE_CLIPBOARD) Clipboard
uint32_t fragment_end)>;
using ReadSvgCallback = base::OnceCallback<void(std::u16string result)>;
using ReadRTFCallback = base::OnceCallback<void(std::string result)>;
+ using ReadPngCallback =
+ base::OnceCallback<void(const std::vector<uint8_t>& result)>;
using ReadImageCallback = base::OnceCallback<void(const SkBitmap& result)>;
using ReadCustomDataCallback =
base::OnceCallback<void(std::u16string result)>;
@@ -180,6 +182,11 @@ class COMPONENT_EXPORT(UI_BASE_CLIPBOARD) Clipboard
const DataTransferEndpoint* data_dst,
ReadRTFCallback callback) const;
+ // Reads a png from the clipboard, if available.
+ virtual void ReadPng(ClipboardBuffer buffer,
+ const DataTransferEndpoint* data_dst,
+ ReadPngCallback callback) const = 0;
+
// Reads an image from the clipboard, if available.
virtual void ReadImage(ClipboardBuffer buffer,
const DataTransferEndpoint* data_dst,