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

Unified Diff: chrome/renderer/renderer_glue.cc

Issue 6685063: Fix glue for ClipboardHostMsg_ReadAvailableTypes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 9 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 | « chrome/common/clipboard_messages.h ('k') | content/browser/renderer_host/clipboard_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_glue.cc
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index 4b3173000e7bedcc083ed06d04d51da246ced72c..5cabf27b401996868dbc4577614443ff4e52881f 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -166,6 +166,13 @@ bool ClipboardIsFormatAvailable(const ui::Clipboard::FormatType& format,
return result;
}
+void ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer,
+ std::vector<string16>* types,
+ bool* contains_filenames) {
+ RenderThread::current()->Send(new ClipboardHostMsg_ReadAvailableTypes(
+ buffer, types, contains_filenames));
+}
+
void ClipboardReadText(ui::Clipboard::Buffer buffer, string16* result) {
RenderThread::current()->Send(new ClipboardHostMsg_ReadText(buffer, result));
}
@@ -185,15 +192,6 @@ void ClipboardReadImage(ui::Clipboard::Buffer buffer, std::string* data) {
RenderThread::current()->Send(new ClipboardHostMsg_ReadImage(buffer, data));
}
-bool ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer,
- std::vector<string16>* types,
- bool* contains_filenames) {
- bool result = false;
- RenderThread::current()->Send(new ClipboardHostMsg_ReadAvailableTypes(
- buffer, &result, types, contains_filenames));
- return result;
-}
-
bool ClipboardReadData(ui::Clipboard::Buffer buffer, const string16& type,
string16* data, string16* metadata) {
bool result = false;
« no previous file with comments | « chrome/common/clipboard_messages.h ('k') | content/browser/renderer_host/clipboard_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698