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

Unified Diff: webkit/tools/test_shell/mock_webclipboard_impl.h

Issue 8775025: Add glue for supporting custom MIME types in DataTransfer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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
Index: webkit/tools/test_shell/mock_webclipboard_impl.h
diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.h b/webkit/tools/test_shell/mock_webclipboard_impl.h
index d13a7f9398a3b95c26e36e6038da784831864807..d22a0f7335985c8d813d02bd8ac267a58d4ded75 100644
--- a/webkit/tools/test_shell/mock_webclipboard_impl.h
+++ b/webkit/tools/test_shell/mock_webclipboard_impl.h
@@ -11,6 +11,7 @@
#define WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_
#include "third_party/WebKit/Source/WebKit/chromium/public/WebClipboard.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebImage.h"
class MockWebClipboardImpl : public WebKit::WebClipboard {
@@ -28,7 +29,9 @@ class MockWebClipboardImpl : public WebKit::WebClipboard {
WebKit::WebURL* url,
unsigned* fragmentStart,
unsigned* fragmentEnd);
- virtual WebKit::WebData readImage(WebKit::WebClipboard::Buffer);
+ virtual WebKit::WebData readImage(WebKit::WebClipboard::Buffer buffer);
+ virtual WebKit::WebString readCustomData(WebKit::WebClipboard::Buffer buffer,
+ const WebKit::WebString& type);
virtual void writePlainText(const WebKit::WebString& plain_text);
virtual void writeHTML(
@@ -45,6 +48,7 @@ class MockWebClipboardImpl : public WebKit::WebClipboard {
WebKit::WebString m_plainText;
WebKit::WebString m_htmlText;
WebKit::WebImage m_image;
+ WebKit::WebVector<WebKit::WebDragData::CustomData> m_customData;
bool m_writeSmartPaste;
};

Powered by Google App Engine
This is Rietveld 408576698