| Index: webkit/tools/test_shell/mock_webclipboard_impl.cc
|
| diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.cc b/webkit/tools/test_shell/mock_webclipboard_impl.cc
|
| index eec9099f34075ca163da1d9ea07b9335a8f39f92..eb006f0ff1c49d3c10e2fd6311711dbf2f8545bd 100644
|
| --- a/webkit/tools/test_shell/mock_webclipboard_impl.cc
|
| +++ b/webkit/tools/test_shell/mock_webclipboard_impl.cc
|
| @@ -14,6 +14,7 @@
|
|
|
| using WebKit::WebString;
|
| using WebKit::WebURL;
|
| +using WebKit::WebVector;
|
|
|
| bool MockWebClipboardImpl::isFormatAvailable(Format format, Buffer buffer) {
|
| switch (format) {
|
| @@ -85,3 +86,17 @@ void MockWebClipboardImpl::writeImage(const WebKit::WebImage& image,
|
| m_writeSmartPaste = false;
|
| }
|
| }
|
| +
|
| +WebVector<WebString> MockWebClipboardImpl::readAvailableTypes(
|
| + Buffer buffer, bool* containsFilenames) {
|
| + *containsFilenames = false;
|
| + std::vector<WebString> results;
|
| + if (!m_plainText.isEmpty()) {
|
| + results.push_back(WebString("Text"));
|
| + results.push_back(WebString("text/plain"));
|
| + }
|
| + if (!m_htmlText.isEmpty()) {
|
| + results.push_back(WebString("text/html"));
|
| + }
|
| + return results;
|
| +}
|
|
|