Changeset 154360 in webkit
- Timestamp:
- Aug 20, 2013 2:52:54 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r154358 r154360 1 2013-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 1 13 2013-08-20 Antti Koivisto <antti@apple.com> 2 14 -
trunk/Source/WebCore/dom/Clipboard.cpp
r154262 r154360 109 109 } 110 110 111 bool Clipboard::hasData()112 {113 return m_pasteboard->hasData();114 }115 116 111 void Clipboard::clearData(const String& type) 117 112 { … … 219 214 { 220 215 return adoptRef(new Clipboard(policy, Pasteboard::createForDragAndDrop(dragData), DragAndDrop, dragData.containsFiles())); 216 } 217 218 bool Clipboard::hasData() 219 { 220 return m_pasteboard->hasData(); 221 221 } 222 222 -
trunk/Source/WebCore/dom/Clipboard.h
r154350 r154360 60 60 PassRefPtr<FileList> files() const; 61 61 62 bool hasData();63 64 62 void clearData(const String& type); 65 63 void clearData(); … … 85 83 static PassRefPtr<Clipboard> createForDragAndDrop(); 86 84 static PassRefPtr<Clipboard> createForDragAndDrop(ClipboardAccessPolicy, const DragData&); 85 86 bool hasData(); 87 87 88 88 bool dropEffectIsUninitialized() const { return m_dropEffect == "uninitialized"; }
Note: See TracChangeset
for help on using the changeset viewer.