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

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

Issue 174367: Change the ChromiumPasteboard to have a notion of an alternate clipboard... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « webkit/tools/test_shell/mock_webclipboard_impl.h ('k') | webkit/tools/test_shell/simple_clipboard_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/mock_webclipboard_impl.cc
===================================================================
--- webkit/tools/test_shell/mock_webclipboard_impl.cc (revision 25640)
+++ webkit/tools/test_shell/mock_webclipboard_impl.cc (working copy)
@@ -16,7 +16,7 @@
using WebKit::WebString;
using WebKit::WebURL;
-bool MockWebClipboardImpl::isFormatAvailable(Format format) {
+bool MockWebClipboardImpl::isFormatAvailable(Format format, Buffer buffer) {
switch (format) {
case FormatHTML:
return !m_htmlText.isEmpty();
@@ -28,15 +28,30 @@
NOTREACHED();
return false;
}
+
+ switch (buffer) {
+ case BufferStandard:
+ break;
+ case BufferSelection:
+#if defined(OS_LINUX)
+ break;
+#endif
+ default:
+ NOTREACHED();
+ return false;
+ }
+
return true;
}
-WebKit::WebString MockWebClipboardImpl::readPlainText() {
+WebKit::WebString MockWebClipboardImpl::readPlainText(
+ WebKit::WebClipboard::Buffer buffer) {
return m_plainText;
}
// TODO(wtc): set output argument *url.
-WebKit::WebString MockWebClipboardImpl::readHTML(WebKit::WebURL* url) {
+WebKit::WebString MockWebClipboardImpl::readHTML(
+ WebKit::WebClipboard::Buffer buffer, WebKit::WebURL* url) {
return m_htmlText;
}
« no previous file with comments | « webkit/tools/test_shell/mock_webclipboard_impl.h ('k') | webkit/tools/test_shell/simple_clipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698