Changeset 149371 in webkit


Ignore:
Timestamp:
Apr 30, 2013 8:58:41 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] --minimal build fails with error: class WebCore::EventHandler' has no member named 'dragSourceEndedAt
https://bugs.webkit.org/show_bug.cgi?id=114299

Patch by Ed Bartosh <bartosh@gmail.com> on 2013-04-30
Reviewed by Martin Robinson.

Wrapped code, related to drag&drop in #if ENABLE(DRAG_SUPPORT)

  • webkit/webkitwebview.cpp:

(webkit_web_view_class_init):
(webkit_web_view_init):

Location:
trunk/Source/WebKit/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/gtk/ChangeLog

    r149125 r149371  
     12013-04-30  Ed Bartosh  <bartosh@gmail.com>
     2
     3        [GTK] --minimal build fails with error: class WebCore::EventHandler' has no member named 'dragSourceEndedAt
     4        https://bugs.webkit.org/show_bug.cgi?id=114299
     5
     6        Reviewed by Martin Robinson.
     7
     8        Wrapped code, related to drag&drop in #if ENABLE(DRAG_SUPPORT)
     9
     10        * webkit/webkitwebview.cpp:
     11        (webkit_web_view_class_init):
     12        (webkit_web_view_init):
     13
    1142013-04-25  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp

    r148373 r149371  
    14901490}
    14911491
     1492#if ENABLE(DRAG_SUPPORT)
    14921493static void webkit_web_view_drag_end(GtkWidget* widget, GdkDragContext* context)
    14931494{
     
    15851586    return TRUE;
    15861587}
     1588#endif // ENABLE(DRAG_SUPPORT)
    15871589
    15881590#if GTK_CHECK_VERSION(2, 12, 0)
     
    31013103    widgetClass->get_accessible = webkit_web_view_get_accessible;
    31023104    widgetClass->screen_changed = webkit_web_view_screen_changed;
     3105#if ENABLE(DRAG_SUPPORT)
    31033106    widgetClass->drag_end = webkit_web_view_drag_end;
    31043107    widgetClass->drag_data_get = webkit_web_view_drag_data_get;
     
    31073110    widgetClass->drag_drop = webkit_web_view_drag_drop;
    31083111    widgetClass->drag_data_received = webkit_web_view_drag_data_received;
     3112#else
     3113    widgetClass->drag_end = NULL;
     3114    widgetClass->drag_data_get = NULL;
     3115    widgetClass->drag_motion = NULL;
     3116    widgetClass->drag_leave = NULL;
     3117    widgetClass->drag_drop = NULL;
     3118    widgetClass->drag_data_received = NULL;
     3119#endif
    31093120#if GTK_CHECK_VERSION(2, 12, 0)
    31103121    widgetClass->query_tooltip = webkit_web_view_query_tooltip;
     
    37573768#endif
    37583769    pageClients.editorClient = new WebKit::EditorClient(webView);
     3770#if ENABLE(DRAG_SUPPORT)
    37593771    pageClients.dragClient = new WebKit::DragClient(webView);
     3772#endif
    37603773    pageClients.inspectorClient = new WebKit::InspectorClient(webView);
    37613774
     
    38253838    priv->subResources = adoptGRef(g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_object_unref));
    38263839
     3840#if ENABLE(DRAG_SUPPORT)
    38273841    priv->dragAndDropHelper.setWidget(GTK_WIDGET(webView));
    38283842    gtk_drag_dest_set(GTK_WIDGET(webView), static_cast<GtkDestDefaults>(0), 0, 0, static_cast<GdkDragAction>(GDK_ACTION_COPY | GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_LINK | GDK_ACTION_PRIVATE));
    38293843    gtk_drag_dest_set_target_list(GTK_WIDGET(webView), PasteboardHelper::defaultPasteboardHelper()->targetList());
     3844#endif
    38303845
    38313846    priv->selfScrolling = false;
Note: See TracChangeset for help on using the changeset viewer.