diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-04 06:19:37 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-04 06:19:37 +0000 |
commit | c6562f4b883b37a288205a206bdadf9a37978bf3 (patch) | |
tree | 1a576398bcb2cd32e972449068bc1b66324df84f /webkit/tools/test_shell/mock_webclipboard_impl.h | |
parent | 5d2cded762eacf51f77021b3de61de430f50a9d8 (diff) | |
download | chromium_src-c6562f4b883b37a288205a206bdadf9a37978bf3.zip chromium_src-c6562f4b883b37a288205a206bdadf9a37978bf3.tar.gz chromium_src-c6562f4b883b37a288205a206bdadf9a37978bf3.tar.bz2 |
Add glue for supporting custom MIME types in DataTransfer.
BUG=31037
TEST=none in this patch, will be landed in WebKit as layout tests.
Review URL: http://codereview.chromium.org/8775025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/mock_webclipboard_impl.h')
-rw-r--r-- | webkit/tools/test_shell/mock_webclipboard_impl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.h b/webkit/tools/test_shell/mock_webclipboard_impl.h index c80175b..8133089 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/platform/WebClipboard.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/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; }; |