Changeset 58885 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
May 6, 2010, 9:32:42 AM (15 years ago)
Author:
Martin Robinson
Message:

2010-05-06 Martin Robinson <Martin Robinson>

Reviewed by Gustavo Noronha Silva.

[GTK] Enable DOM clipboard and drag-and-drop access
https://bugs.webkit.org/show_bug.cgi?id=30623

Convert dragging portion of drag-and-drop to use DataObjectGtk.

  • wtf/gobject/GRefPtr.h: Add forward declarations for GObject functions.

2010-05-06 Martin Robinson <Martin Robinson>

Reviewed by Gustavo Noronha Silva.

[GTK] Enable DOM clipboard and drag-and-drop access
https://bugs.webkit.org/show_bug.cgi?id=30623

Convert dragging portion of drag-and-drop to use DataObjectGtk.

No new tests, because functionality has not changed.

  • page/gtk/EventHandlerGtk.cpp: (WebCore::EventHandler::createDraggingClipboard): Pass the DataObjectGtk as a parameter here.
  • platform/gtk/ClipboardGtk.h: (WebCore::ClipboardGtk::create): Take the DataObject as a parameter instead of creating it here. (WebCore::ClipboardGtk::helper): Added. (WebCore::ClipboardGtk::dataObject): Added.
  • platform/gtk/PasteboardHelper.h: Make targetListForDataObject a public method.

2010-05-06 Martin Robinson <Martin Robinson>

Reviewed by Gustavo Noronha Silva.

[GTK] Enable DOM clipboard and drag-and-drop access
https://bugs.webkit.org/show_bug.cgi?id=30623

Convert dragging portion of drag-and-drop to use DataObjectGtk.

  • WebCoreSupport/DragClientGtk.cpp: (WebKit::DragClient::willPerformDragDestinationAction): Remove the notImplemented. It is implemented, it's just a no-op. (WebKit::DragClient::startDrag): Start the drag context via the ClipboardGtk and PasteboardHelper now.
  • WebCoreSupport/DragClientGtk.h: Small style fix.
  • webkit/webkitprivate.h: Add a HashMap of contexts and DataObjects here to to represent all current drag operations.
  • webkit/webkitwebview.cpp: (webkit_web_view_dispose): Clear all data objects during disposal. (webkit_web_view_drag_end): When a drag is over, just remove it from the map. (webkit_web_view_drag_data_get): To get the drag data, just grab it from the DataObject.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r58878 r58885  
     12010-05-06  Martin Robinson  <[email protected]>
     2
     3        Reviewed by Gustavo Noronha Silva.
     4
     5        [GTK] Enable DOM clipboard and drag-and-drop access
     6        https://bugs.webkit.org/show_bug.cgi?id=30623
     7
     8        Convert dragging portion of drag-and-drop to use DataObjectGtk.
     9
     10        * wtf/gobject/GRefPtr.h: Add forward declarations for GObject functions.
     11
    1122010-05-06  Steve Block  <[email protected]>
    213
  • trunk/JavaScriptCore/wtf/gobject/GRefPtr.h

    r55149 r58885  
    2828
    2929typedef struct _GHashTable GHashTable;
     30typedef void* gpointer;
     31extern "C" void g_object_unref(gpointer object);
     32extern "C" gpointer  g_object_ref_sink(gpointer object);
    3033
    3134namespace WTF {
Note: See TracChangeset for help on using the changeset viewer.