Home | History | Annotate | Download | only in efl
      1 /*
      2  *  Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia
      3  *  Copyright (C) 2009-2010 ProFUSION embedded systems
      4  *  Copyright (C) 2009-2010 Samsung Electronics
      5  *
      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.
     10  *
     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.
     15  *
     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
     19  */
     20 
     21 #include "config.h"
     22 #include "ClipboardEfl.h"
     23 
     24 #include "Editor.h"
     25 #include "FileList.h"
     26 #include "NotImplemented.h"
     27 #include <wtf/text/StringHash.h>
     28 
     29 namespace WebCore {
     30 PassRefPtr<Clipboard> Editor::newGeneralClipboard(ClipboardAccessPolicy policy, Frame*)
     31 {
     32     return ClipboardEfl::create(policy, Clipboard::CopyAndPaste);
     33 }
     34 
     35 PassRefPtr<Clipboard> Clipboard::create(ClipboardAccessPolicy, DragData*, Frame*)
     36 {
     37     return 0;
     38 }
     39 
     40 ClipboardEfl::ClipboardEfl(ClipboardAccessPolicy policy, ClipboardType clipboardType)
     41     : Clipboard(policy, clipboardType)
     42 {
     43     notImplemented();
     44 }
     45 
     46 ClipboardEfl::~ClipboardEfl()
     47 {
     48     notImplemented();
     49 }
     50 
     51 void ClipboardEfl::clearData(const String&)
     52 {
     53     notImplemented();
     54 }
     55 
     56 void ClipboardEfl::writePlainText(const WTF::String&)
     57 {
     58     notImplemented();
     59 }
     60 
     61 void ClipboardEfl::clearAllData()
     62 {
     63     notImplemented();
     64 }
     65 
     66 String ClipboardEfl::getData(const String&, bool &success) const
     67 {
     68     notImplemented();
     69     success = false;
     70     return String();
     71 }
     72 
     73 bool ClipboardEfl::setData(const String&, const String&)
     74 {
     75     notImplemented();
     76     return false;
     77 }
     78 
     79 HashSet<String> ClipboardEfl::types() const
     80 {
     81     notImplemented();
     82     return HashSet<String>();
     83 }
     84 
     85 PassRefPtr<FileList> ClipboardEfl::files() const
     86 {
     87     notImplemented();
     88     return 0;
     89 }
     90 
     91 IntPoint ClipboardEfl::dragLocation() const
     92 {
     93     notImplemented();
     94     return IntPoint(0, 0);
     95 }
     96 
     97 CachedImage* ClipboardEfl::dragImage() const
     98 {
     99     notImplemented();
    100     return 0;
    101 }
    102 
    103 void ClipboardEfl::setDragImage(CachedImage*, const IntPoint&)
    104 {
    105     notImplemented();
    106 }
    107 
    108 Node* ClipboardEfl::dragImageElement()
    109 {
    110     notImplemented();
    111     return 0;
    112 }
    113 
    114 void ClipboardEfl::setDragImageElement(Node*, const IntPoint&)
    115 {
    116     notImplemented();
    117 }
    118 
    119 DragImageRef ClipboardEfl::createDragImage(IntPoint&) const
    120 {
    121     notImplemented();
    122     return 0;
    123 }
    124 
    125 void ClipboardEfl::declareAndWriteDragImage(Element*, const KURL&, const String&, Frame*)
    126 {
    127     notImplemented();
    128 }
    129 
    130 void ClipboardEfl::writeURL(const KURL&, const String&, Frame*)
    131 {
    132     notImplemented();
    133 }
    134 
    135 void ClipboardEfl::writeRange(Range*, Frame*)
    136 {
    137     notImplemented();
    138 }
    139 
    140 bool ClipboardEfl::hasData()
    141 {
    142     notImplemented();
    143     return false;
    144 }
    145 
    146 }
    147