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

Unified Diff: app/clipboard/clipboard.h

Issue 2842016: Implement new Chromium IPCs for copying/dragging (Closed)
Patch Set: . Created 10 years, 5 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 | « no previous file | chrome/browser/clipboard_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/clipboard/clipboard.h
diff --git a/app/clipboard/clipboard.h b/app/clipboard/clipboard.h
index b149d8ddc41d9bc809a124dd91b7456156fc166f..0c0e5b7bcfb9adcfa9924d0071b99d2efc48585d 100644
--- a/app/clipboard/clipboard.h
+++ b/app/clipboard/clipboard.h
@@ -79,9 +79,8 @@ class Clipboard {
// functions accept a buffer parameter.
enum Buffer {
BUFFER_STANDARD,
-#if defined(USE_X11)
BUFFER_SELECTION,
-#endif
+ BUFFER_DRAG,
};
static bool IsValidBuffer(int32 buffer) {
@@ -92,6 +91,8 @@ class Clipboard {
case BUFFER_SELECTION:
return true;
#endif
+ case BUFFER_DRAG:
+ return true;
}
return false;
}
@@ -150,6 +151,8 @@ class Clipboard {
// Reads raw data from the clipboard with the given format type. Stores result
// as a byte vector.
+ // TODO(dcheng): Due to platform limitations on Windows, we should make sure
+ // format is never controlled by the user.
void ReadData(const std::string& format, std::string* result);
// Get format Identifiers for various types.
« no previous file with comments | « no previous file | chrome/browser/clipboard_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698