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

Unified Diff: webkit/tools/test_shell/simple_clipboard_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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_clipboard_impl.cc
===================================================================
--- webkit/tools/test_shell/simple_clipboard_impl.cc (revision 25640)
+++ webkit/tools/test_shell/simple_clipboard_impl.cc (working copy)
@@ -33,21 +33,22 @@
return clipboard.Pointer();
}
-bool ClipboardIsFormatAvailable(const Clipboard::FormatType& format) {
- return ClipboardGetClipboard()->IsFormatAvailable(format);
+bool ClipboardIsFormatAvailable(const Clipboard::FormatType& format,
+ Clipboard::Buffer buffer) {
+ return ClipboardGetClipboard()->IsFormatAvailable(format, buffer);
}
-void ClipboardReadText(string16* result) {
- ClipboardGetClipboard()->ReadText(result);
+void ClipboardReadText(Clipboard::Buffer buffer, string16* result) {
+ ClipboardGetClipboard()->ReadText(buffer, result);
}
-void ClipboardReadAsciiText(std::string* result) {
- ClipboardGetClipboard()->ReadAsciiText(result);
+void ClipboardReadAsciiText(Clipboard::Buffer buffer, std::string* result) {
+ ClipboardGetClipboard()->ReadAsciiText(buffer, result);
}
-void ClipboardReadHTML(string16* markup, GURL* url) {
+void ClipboardReadHTML(Clipboard::Buffer buffer, string16* markup, GURL* url) {
std::string url_str;
- ClipboardGetClipboard()->ReadHTML(markup, url ? &url_str : NULL);
+ ClipboardGetClipboard()->ReadHTML(buffer, markup, url ? &url_str : NULL);
if (url)
*url = GURL(url_str);
}
« no previous file with comments | « webkit/tools/test_shell/mock_webclipboard_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698