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 /chrome/browser/clipboard_dispatcher_gtk.cc | |
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 'chrome/browser/clipboard_dispatcher_gtk.cc')
-rw-r--r-- | chrome/browser/clipboard_dispatcher_gtk.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/chrome/browser/clipboard_dispatcher_gtk.cc b/chrome/browser/clipboard_dispatcher_gtk.cc new file mode 100644 index 0000000..7fe0c3b --- /dev/null +++ b/chrome/browser/clipboard_dispatcher_gtk.cc @@ -0,0 +1,33 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/clipboard_dispatcher.h"
+#include "base/logging.h"
+
+bool ClipboardDispatcher::ReadAvailableTypes(Clipboard::Buffer buffer,
+ std::vector<string16>* types,
+ bool* contains_filenames) {
+ DCHECK(types);
+ DCHECK(contains_filenames);
+ types->clear();
+ *contains_filenames = false;
+ return false;
+}
+
+bool ClipboardDispatcher::ReadData(Clipboard::Buffer buffer,
+ const string16& type,
+ string16* data,
+ string16* metadata) {
+ DCHECK(data);
+ DCHECK(metadata);
+ return false;
+}
+
+bool ClipboardDispatcher::ReadFilenames(Clipboard::Buffer buffer,
+ std::vector<string16>* filenames) {
+ DCHECK(filenames);
+ filenames->clear();
+ return false;
+}
+
|