summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 04:47:29 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 04:47:29 +0000
commit2a18aed2289c0bcbb054d8b5e17dc23b37570e99 (patch)
treeee32868666d6924422ff29854c43917eb8ef93ab
parenta3e3d053232af418bc7761fdf996dd9915eccadd (diff)
downloadchromium_src-2a18aed2289c0bcbb054d8b5e17dc23b37570e99.zip
chromium_src-2a18aed2289c0bcbb054d8b5e17dc23b37570e99.tar.gz
chromium_src-2a18aed2289c0bcbb054d8b5e17dc23b37570e99.tar.bz2
We might use gtk functions, maybe Qt, maybe raw X11. Maybe we can re-use some code from other ports in WebKit, but for right now before those choices have to be made this is a stub to help get us linking.
Review URL: http://codereview.chromium.org/8105 Patch from Torchmobile Inc. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3907 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/SConscript.port3
-rw-r--r--webkit/port/platform/chromium/PasteboardLinux.cpp60
2 files changed, 62 insertions, 1 deletions
diff --git a/webkit/SConscript.port b/webkit/SConscript.port
index cb490f4..3af7859 100644
--- a/webkit/SConscript.port
+++ b/webkit/SConscript.port
@@ -124,7 +124,8 @@ if env['PLATFORM'] == 'posix':
# Linux specific implementations
input_files.extend([
- '$PORT_DIR/platform/chromium/ScreenLinux.cpp'
+ '$PORT_DIR/platform/chromium/ScreenLinux.cpp',
+ '$PORT_DIR/platform/chromium/PasteboardLinux.cpp',
])
if env['PLATFORM'] == 'darwin':
diff --git a/webkit/port/platform/chromium/PasteboardLinux.cpp b/webkit/port/platform/chromium/PasteboardLinux.cpp
new file mode 100644
index 0000000..7abc6f6
--- /dev/null
+++ b/webkit/port/platform/chromium/PasteboardLinux.cpp
@@ -0,0 +1,60 @@
+// Copyright (c) 2008 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.
+
+#import "config.h"
+#import "Pasteboard.h"
+
+#import "DocumentFragment.h"
+#import "NotImplemented.h"
+
+/*
+ A stub for a X11 pasteboard
+ */
+namespace WebCore {
+
+Pasteboard* Pasteboard::generalPasteboard()
+{
+ notImplemented();
+ return 0;
+}
+
+void Pasteboard::clear()
+{
+ notImplemented();
+}
+
+void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
+{
+ notImplemented();
+}
+
+void Pasteboard::writeURL(const KURL& url, const String& titleStr, Frame* frame)
+{
+ notImplemented();
+}
+
+void Pasteboard::writeImage(Node* node, const KURL& url, const String& title)
+{
+ notImplemented();
+}
+
+bool Pasteboard::canSmartReplace()
+{
+ notImplemented();
+ return false;
+}
+
+String Pasteboard::plainText(Frame* frame)
+{
+ notImplemented();
+ return String();
+}
+
+PassRefPtr<DocumentFragment> Pasteboard::documentFragment(Frame* frame, PassRefPtr<Range> context, bool allowPlainText, bool& chosePlainText)
+{
+ notImplemented();
+ return 0;
+}
+
+}