Changeset 154360 in webkit


Ignore:
Timestamp:
Aug 20, 2013 2:52:54 PM (11 years ago)
Author:
dbates@webkit.org
Message:

<https://webkit.org/b/120088> Define Clipboard::hasData() only when building with drag support

Reviewed by Darin Adler.

Clipboard::hasData() is specific to drag-and-drop support. We should only define it when
such support is enabled.

  • dom/Clipboard.cpp: Move hasData() to DRAG_SUPPORT section of the file.
  • dom/Clipboard.h: Ditto.
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r154358 r154360  
     12013-08-20  Daniel Bates  <dabates@apple.com>
     2
     3        <https://webkit.org/b/120088> Define Clipboard::hasData() only when building with drag support
     4
     5        Reviewed by Darin Adler.
     6
     7        Clipboard::hasData() is specific to drag-and-drop support. We should only define it when
     8        such support is enabled.
     9
     10        * dom/Clipboard.cpp: Move hasData() to DRAG_SUPPORT section of the file.
     11        * dom/Clipboard.h: Ditto.
     12
    1132013-08-20  Antti Koivisto  <antti@apple.com>
    214
  • trunk/Source/WebCore/dom/Clipboard.cpp

    r154262 r154360  
    109109}
    110110
    111 bool Clipboard::hasData()
    112 {
    113     return m_pasteboard->hasData();
    114 }
    115 
    116111void Clipboard::clearData(const String& type)
    117112{
     
    219214{
    220215    return adoptRef(new Clipboard(policy, Pasteboard::createForDragAndDrop(dragData), DragAndDrop, dragData.containsFiles()));
     216}
     217
     218bool Clipboard::hasData()
     219{
     220    return m_pasteboard->hasData();
    221221}
    222222
  • trunk/Source/WebCore/dom/Clipboard.h

    r154350 r154360  
    6060        PassRefPtr<FileList> files() const;
    6161
    62         bool hasData();
    63 
    6462        void clearData(const String& type);
    6563        void clearData();
     
    8583        static PassRefPtr<Clipboard> createForDragAndDrop();
    8684        static PassRefPtr<Clipboard> createForDragAndDrop(ClipboardAccessPolicy, const DragData&);
     85
     86        bool hasData();
    8787
    8888        bool dropEffectIsUninitialized() const { return m_dropEffect == "uninitialized"; }
Note: See TracChangeset for help on using the changeset viewer.