diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-24 04:47:29 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-24 04:47:29 +0000 |
commit | 2a18aed2289c0bcbb054d8b5e17dc23b37570e99 (patch) | |
tree | ee32868666d6924422ff29854c43917eb8ef93ab /webkit/port | |
parent | a3e3d053232af418bc7761fdf996dd9915eccadd (diff) | |
download | chromium_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
Diffstat (limited to 'webkit/port')
-rw-r--r-- | webkit/port/platform/chromium/PasteboardLinux.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
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; +} + +} |