Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: content/test/mock_webclipboard_impl.h

Issue 1876653003: Register clipboard image blob in the browser process to copy data less. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/webclipboard_impl.cc ('k') | content/test/mock_webclipboard_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_webclipboard_impl.h
diff --git a/content/test/mock_webclipboard_impl.h b/content/test/mock_webclipboard_impl.h
index 0bfa924f0e0cb3038987abe1a80ac5f1fd5e520a..95dfebf60e4247ab3917e0071671b0d6a788fe19 100644
--- a/content/test/mock_webclipboard_impl.h
+++ b/content/test/mock_webclipboard_impl.h
@@ -16,13 +16,13 @@
#include "base/strings/nullable_string16.h"
#include "base/strings/string16.h"
-#include "third_party/WebKit/public/platform/WebClipboard.h"
#include "third_party/WebKit/public/platform/WebDragData.h"
#include "third_party/WebKit/public/platform/WebImage.h"
+#include "third_party/WebKit/public/platform/WebMockClipboard.h"
namespace content {
-class MockWebClipboardImpl : public blink::WebClipboard {
+class MockWebClipboardImpl : public blink::WebMockClipboard {
public:
MockWebClipboardImpl();
virtual ~MockWebClipboardImpl();
@@ -39,7 +39,8 @@ class MockWebClipboardImpl : public blink::WebClipboard {
blink::WebURL* url,
unsigned* fragmentStart,
unsigned* fragmentEnd) override;
- blink::WebData readImage(blink::WebClipboard::Buffer buffer) override;
+ blink::WebBlobInfo readImage(blink::WebClipboard::Buffer buffer) override;
+ blink::WebImage readRawImage(blink::WebClipboard::Buffer buffer) override;
blink::WebString readCustomData(blink::WebClipboard::Buffer buffer,
const blink::WebString& type) override;
« no previous file with comments | « content/renderer/webclipboard_impl.cc ('k') | content/test/mock_webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698