⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 150119 in webkit


Ignore:
Timestamp:
May 15, 2013, 9:27:43 AM (13 years ago)
Author:
Darin Adler
Message:

[Mac] Make Clipboard::declareAndWriteDragImage non-virtual
​https://bugs.webkit.org/show_bug.cgi?id=116156

Reviewed by Anders Carlsson.

  • dom/Clipboard.h: Make declareAndWriteDragImage non-virtual for non-legacy.
  • platform/Pasteboard.h:

(WebCore::Pasteboard::name): Added. Can be used in Mac platform code to do
pasteboard operations directly instead of through the Pasteboard class
functions. Not sure if we'll need it long term or not.

  • platform/mac/ClipboardMac.h: Removed declareAndWriteDragImage function.
  • platform/mac/ClipboardMac.mm:

(WebCore::Clipboard::declareAndWriteDragImage): Made this function a Clipboard
member instead of ClipboardMac.

Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150118 r150119  
     12013-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
    1212013-05-15  Peter Gal  <galpeter@inf.u-szeged.hu>
    222
  • trunk/Source/WebCore/dom/Clipboard.h

    r150107 r150119  
    9797        LEGACY_VIRTUAL DragImageRef createDragImage(IntPoint& dragLocation) const LEGACY_PURE;
    9898#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;
    100100#endif
    101101        LEGACY_VIRTUAL void writeURL(const KURL&, const String&, Frame*) LEGACY_PURE;
  • trunk/Source/WebCore/platform/Pasteboard.h

    r150100 r150119  
    8383#if PLATFORM(MAC)
    8484    static PassOwnPtr<Pasteboard> create(const String& pasteboardName);
     85    String name() { return m_pasteboardName; }
    8586
    8687    // This is required to support OS X services.
  • trunk/Source/WebCore/platform/mac/ClipboardMac.h

    r150107 r150119  
    5454    virtual ~ClipboardMac();
    5555
    56 #if ENABLE(DRAG_SUPPORT)
    57     virtual void declareAndWriteDragImage(Element*, const KURL&, const String& title, Frame*);
    58 #endif
    59    
    6056    // Methods for getting info in Cocoa's type system
    6157    const String& pasteboardName() { return m_pasteboardName; }
  • trunk/Source/WebCore/platform/mac/ClipboardMac.mm

    r150107 r150119  
    6868
    6969#if ENABLE(DRAG_SUPPORT)
    70 void ClipboardMac::declareAndWriteDragImage(Element* element, const KURL& url, const String& title, Frame* frame)
     70void Clipboard::declareAndWriteDragImage(Element* element, const KURL& url, const String& title, Frame* frame)
    7171{
    7272    ASSERT(frame);
    7373    if (Page* page = frame->page())
    74         page->dragController()->client()->declareAndWriteDragImage(m_pasteboardName, kit(element), url, title, frame);
     74        page->dragController()->client()->declareAndWriteDragImage(m_pasteboard->name(), kit(element), url, title, frame);
    7575}
    7676#endif // ENABLE(DRAG_SUPPORT)
Note: See TracChangeset for help on using the changeset viewer.