summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
+}
+
+}