Changeset 150119 in webkit
- Timestamp:
- May 15, 2013, 9:27:43 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
dom/Clipboard.h (modified) (1 diff)
-
platform/Pasteboard.h (modified) (1 diff)
-
platform/mac/ClipboardMac.h (modified) (1 diff)
-
platform/mac/ClipboardMac.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150118 r150119 1 2013-05-15 Darin Adler <darin@apple.com> 2 3 [Mac] Make Clipboard::declareAndWriteDragImage non-virtual 4 https://bugs.webkit.org/show_bug.cgi?id=116156 5 6 Reviewed by Anders Carlsson. 7 8 * dom/Clipboard.h: Make declareAndWriteDragImage non-virtual for non-legacy. 9 10 * platform/Pasteboard.h: 11 (WebCore::Pasteboard::name): Added. Can be used in Mac platform code to do 12 pasteboard operations directly instead of through the Pasteboard class 13 functions. Not sure if we'll need it long term or not. 14 15 * platform/mac/ClipboardMac.h: Removed declareAndWriteDragImage function. 16 17 * platform/mac/ClipboardMac.mm: 18 (WebCore::Clipboard::declareAndWriteDragImage): Made this function a Clipboard 19 member instead of ClipboardMac. 20 1 21 2013-05-15 Peter Gal <galpeter@inf.u-szeged.hu> 2 22 -
trunk/Source/WebCore/dom/Clipboard.h
r150107 r150119 97 97 LEGACY_VIRTUAL DragImageRef createDragImage(IntPoint& dragLocation) const LEGACY_PURE; 98 98 #if ENABLE(DRAG_SUPPORT) 99 virtual void declareAndWriteDragImage(Element*, const KURL&, const String& title, Frame*) = 0;99 LEGACY_VIRTUAL void declareAndWriteDragImage(Element*, const KURL&, const String& title, Frame*) LEGACY_PURE; 100 100 #endif 101 101 LEGACY_VIRTUAL void writeURL(const KURL&, const String&, Frame*) LEGACY_PURE; -
trunk/Source/WebCore/platform/Pasteboard.h
r150100 r150119 83 83 #if PLATFORM(MAC) 84 84 static PassOwnPtr<Pasteboard> create(const String& pasteboardName); 85 String name() { return m_pasteboardName; } 85 86 86 87 // This is required to support OS X services. -
trunk/Source/WebCore/platform/mac/ClipboardMac.h
r150107 r150119 54 54 virtual ~ClipboardMac(); 55 55 56 #if ENABLE(DRAG_SUPPORT)57 virtual void declareAndWriteDragImage(Element*, const KURL&, const String& title, Frame*);58 #endif59 60 56 // Methods for getting info in Cocoa's type system 61 57 const String& pasteboardName() { return m_pasteboardName; } -
trunk/Source/WebCore/platform/mac/ClipboardMac.mm
r150107 r150119 68 68 69 69 #if ENABLE(DRAG_SUPPORT) 70 void Clipboard Mac::declareAndWriteDragImage(Element* element, const KURL& url, const String& title, Frame* frame)70 void Clipboard::declareAndWriteDragImage(Element* element, const KURL& url, const String& title, Frame* frame) 71 71 { 72 72 ASSERT(frame); 73 73 if (Page* page = frame->page()) 74 page->dragController()->client()->declareAndWriteDragImage(m_pasteboard Name, kit(element), url, title, frame);74 page->dragController()->client()->declareAndWriteDragImage(m_pasteboard->name(), kit(element), url, title, frame); 75 75 } 76 76 #endif // ENABLE(DRAG_SUPPORT)
Note:
See TracChangeset
for help on using the changeset viewer.