2 * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia
3 * Copyright (C) 2009-2010 ProFUSION embedded systems
4 * Copyright (C) 2009-2010 Samsung Electronics
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #include "ClipboardEfl.h"
26 #include "NotImplemented.h"
27 #include <wtf/text/StringHash.h>
30 PassRefPtr<Clipboard> Editor::newGeneralClipboard(ClipboardAccessPolicy policy, Frame*)
32 return ClipboardEfl::create(policy, Clipboard::CopyAndPaste);
35 PassRefPtr<Clipboard> Clipboard::create(ClipboardAccessPolicy, DragData*, Frame*)
40 ClipboardEfl::ClipboardEfl(ClipboardAccessPolicy policy, ClipboardType clipboardType)
41 : Clipboard(policy, clipboardType)
46 ClipboardEfl::~ClipboardEfl()
51 void ClipboardEfl::clearData(const String&)
56 void ClipboardEfl::writePlainText(const WTF::String&)
61 void ClipboardEfl::clearAllData()
66 String ClipboardEfl::getData(const String&, bool &success) const
73 bool ClipboardEfl::setData(const String&, const String&)
79 HashSet<String> ClipboardEfl::types() const
82 return HashSet<String>();
85 PassRefPtr<FileList> ClipboardEfl::files() const
91 IntPoint ClipboardEfl::dragLocation() const
94 return IntPoint(0, 0);
97 CachedImage* ClipboardEfl::dragImage() const
103 void ClipboardEfl::setDragImage(CachedImage*, const IntPoint&)
108 Node* ClipboardEfl::dragImageElement()
114 void ClipboardEfl::setDragImageElement(Node*, const IntPoint&)
119 DragImageRef ClipboardEfl::createDragImage(IntPoint&) const
125 void ClipboardEfl::declareAndWriteDragImage(Element*, const KURL&, const String&, Frame*)
130 void ClipboardEfl::writeURL(const KURL&, const String&, Frame*)
135 void ClipboardEfl::writeRange(Range*, Frame*)
140 bool ClipboardEfl::hasData()