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. |