diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-07 22:43:41 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-07 22:43:41 +0000 |
commit | 97c2c0304fcda75890b4490ca5e6d569db30ca6d (patch) | |
tree | 083da18448d0479ffd8ec09ba530475309bb1fac /app/clipboard | |
parent | 156c84585048ca444173b55097392e43c199a56c (diff) | |
download | chromium_src-97c2c0304fcda75890b4490ca5e6d569db30ca6d.zip chromium_src-97c2c0304fcda75890b4490ca5e6d569db30ca6d.tar.gz chromium_src-97c2c0304fcda75890b4490ca5e6d569db30ca6d.tar.bz2 |
Implement new Chromium IPCs for copying/dragging.
A new ClipboardDispatcher interface has been added to handle the IPC calls. The new methods don't really belong on the existing Clipboard class, since that class deals with only copy and paste. On Windows and Mac, ClipboardDispatcher will share logic for copy/paste and drag/drop. GTK will have to use two separate code paths.
BUG=31037
TEST=none
Review URL: http://codereview.chromium.org/2842016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/clipboard')
-rw-r--r-- | app/clipboard/clipboard.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/clipboard/clipboard.h b/app/clipboard/clipboard.h index b149d8d..0c0e5b7 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. |