Changeset 113147 in webkit
- Timestamp:
- Apr 4, 2012, 12:30:54 AM (14 years ago)
- Location:
- trunk/Source
- Files:
-
- 18 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/page/ContextMenuClient.h (modified) (2 diffs)
-
WebCore/page/ContextMenuController.h (modified) (2 diffs)
-
WebCore/page/Page.cpp (modified) (1 diff)
-
WebCore/page/Page.h (modified) (2 diffs)
-
WebCore/platform/ContextMenu.cpp (modified) (2 diffs)
-
WebCore/platform/ContextMenu.h (modified) (2 diffs)
-
WebCore/platform/ContextMenuItem.cpp (modified) (2 diffs)
-
WebCore/platform/ContextMenuItem.h (modified) (2 diffs)
-
WebCore/platform/efl/ContextMenuEfl.cpp (modified) (2 diffs)
-
WebCore/platform/efl/ContextMenuItemEfl.cpp (modified) (2 diffs)
-
WebCore/platform/gtk/ContextMenuGtk.cpp (modified) (2 diffs)
-
WebCore/platform/gtk/ContextMenuItemGtk.cpp (modified) (2 diffs)
-
WebKit/gtk/ChangeLog (modified) (1 diff)
-
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp (modified) (2 diffs)
-
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h (modified) (2 diffs)
-
WebKit/gtk/webkit/webkitglobals.cpp (modified) (2 diffs)
-
WebKit/gtk/webkit/webkitwebview.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r113143 r113147 1 2012-04-04 Mariusz Grzegorczyk <mariusz.g@samsung.com> 2 3 Fix build break when CONTEXT_MENUS is disabled. 4 https://bugs.webkit.org/show_bug.cgi?id=82342 5 6 Reviewed by Andreas Kling. 7 8 Fixes build break in WebKit-Gtk, and WebKit-EFL ports when CONTEXT_MENUS macro is disabled. 9 10 * page/ContextMenuClient.h: 11 * page/ContextMenuController.h: 12 * page/Page.cpp: 13 (WebCore::Page::PageClients::PageClients): 14 * page/Page.h: 15 (WebCore): 16 (PageClients): 17 * platform/ContextMenu.cpp: 18 * platform/ContextMenu.h: 19 * platform/ContextMenuItem.cpp: 20 * platform/ContextMenuItem.h: 21 * platform/efl/ContextMenuEfl.cpp: 22 * platform/efl/ContextMenuItemEfl.cpp: 23 * platform/gtk/ContextMenuGtk.cpp: 24 * platform/gtk/ContextMenuItemGtk.cpp: 25 1 26 2012-04-03 Adam Barth <abarth@webkit.org> 2 27 -
trunk/Source/WebCore/page/ContextMenuClient.h
r108957 r113147 26 26 #ifndef ContextMenuClient_h 27 27 #define ContextMenuClient_h 28 29 #if ENABLE(CONTEXT_MENUS) 28 30 29 31 #include "ContextMenu.h" … … 68 70 } 69 71 72 #endif // ENABLE(CONTEXT_MENUS) 70 73 #endif -
trunk/Source/WebCore/page/ContextMenuController.h
r110865 r113147 26 26 #ifndef ContextMenuController_h 27 27 #define ContextMenuController_h 28 29 #if ENABLE(CONTEXT_MENUS) 28 30 29 31 #include "HitTestResult.h" … … 99 101 } 100 102 103 #endif // ENABLE(CONTEXT_MENUS) 101 104 #endif -
trunk/Source/WebCore/page/Page.cpp
r112720 r113147 1113 1113 Page::PageClients::PageClients() 1114 1114 : chromeClient(0) 1115 #if ENABLE(CONTEXT_MENUS) 1115 1116 , contextMenuClient(0) 1117 #endif 1116 1118 , editorClient(0) 1117 1119 , dragClient(0) -
trunk/Source/WebCore/page/Page.h
r112720 r113147 54 54 class Chrome; 55 55 class ChromeClient; 56 #if ENABLE(CONTEXT_MENUS) 56 57 class ContextMenuClient; 57 58 class ContextMenuController; 59 #endif 58 60 class Document; 59 61 class DragCaretController; … … 103 105 104 106 ChromeClient* chromeClient; 107 #if ENABLE(CONTEXT_MENUS) 105 108 ContextMenuClient* contextMenuClient; 109 #endif 106 110 EditorClient* editorClient; 107 111 DragClient* dragClient; -
trunk/Source/WebCore/platform/ContextMenu.cpp
r109544 r113147 27 27 #include "ContextMenu.h" 28 28 29 #if USE(CROSS_PLATFORM_CONTEXT_MENUS)29 #if ENABLE(CONTEXT_MENUS) && USE(CROSS_PLATFORM_CONTEXT_MENUS) 30 30 31 31 namespace WebCore { … … 59 59 } // namespace WebCore 60 60 61 #endif // USE(CROSS_PLATFORM_CONTEXT_MENUS)61 #endif // ENABLE(CONTEXT_MENUS) && USE(CROSS_PLATFORM_CONTEXT_MENUS) -
trunk/Source/WebCore/platform/ContextMenu.h
r107811 r113147 26 26 #ifndef ContextMenu_h 27 27 #define ContextMenu_h 28 29 #if ENABLE(CONTEXT_MENUS) 28 30 29 31 #include <wtf/Noncopyable.h> … … 119 121 } 120 122 123 #endif // ENABLE(CONTEXT_MENUS) 121 124 #endif // ContextMenu_h -
trunk/Source/WebCore/platform/ContextMenuItem.cpp
r95901 r113147 29 29 #include "ContextMenu.h" 30 30 31 #if USE(CROSS_PLATFORM_CONTEXT_MENUS)31 #if ENABLE(CONTEXT_MENUS) && USE(CROSS_PLATFORM_CONTEXT_MENUS) 32 32 33 33 namespace WebCore { … … 120 120 } // namespace WebCore 121 121 122 #endif // USE(CROSS_PLATFORM_CONTEXT_MENUS)122 #endif // ENABLE(CONTEXT_MENUS) && USE(CROSS_PLATFORM_CONTEXT_MENUS) -
trunk/Source/WebCore/platform/ContextMenuItem.h
r110865 r113147 27 27 #ifndef ContextMenuItem_h 28 28 #define ContextMenuItem_h 29 30 #if ENABLE(CONTEXT_MENUS) 29 31 30 32 #include "PlatformMenuDescription.h" … … 304 306 } 305 307 308 #endif // ENABLE(CONTEXT_MENUS) 306 309 #endif // ContextMenuItem_h -
trunk/Source/WebCore/platform/efl/ContextMenuEfl.cpp
r103702 r113147 21 21 22 22 #include "config.h" 23 24 #if ENABLE(CONTEXT_MENUS) 25 23 26 #include "ContextMenu.h" 24 27 … … 102 105 103 106 } 107 #endif // ENABLE(CONTEXT_MENUS) -
trunk/Source/WebCore/platform/efl/ContextMenuItemEfl.cpp
r103702 r113147 29 29 30 30 #include "config.h" 31 32 #if ENABLE(CONTEXT_MENUS) 33 31 34 #include "ContextMenuItem.h" 32 35 … … 130 133 #endif 131 134 } 135 #endif // ENABLE(CONTEXT_MENUS) -
trunk/Source/WebCore/platform/gtk/ContextMenuGtk.cpp
r111354 r113147 19 19 20 20 #include "config.h" 21 22 #if ENABLE(CONTEXT_MENUS) 23 21 24 #include "ContextMenu.h" 22 25 … … 114 117 115 118 } 119 120 #endif // ENABLE(CONTEXT_MENUS) -
trunk/Source/WebCore/platform/gtk/ContextMenuItemGtk.cpp
r111354 r113147 20 20 21 21 #include "config.h" 22 23 #if ENABLE(CONTEXT_MENUS) 22 24 23 25 #include "ContextMenuItem.h" … … 272 274 273 275 } 276 277 #endif // ENABLE(CONTEXT_MENUS) -
trunk/Source/WebKit/gtk/ChangeLog
r113001 r113147 1 2012-04-04 Mariusz Grzegorczyk <mariusz.g@samsung.com> 2 3 Fix build break when CONTEXT_MENUS is disabled. 4 https://bugs.webkit.org/show_bug.cgi?id=82342 5 6 Reviewed by Andreas Kling. 7 8 Fixes build break in WebKit-Gtk, and WebKit-EFL ports when CONTEXT_MENUS macro is disabled. 9 10 * WebCoreSupport/ContextMenuClientGtk.cpp: 11 * WebCoreSupport/ContextMenuClientGtk.h: 12 * webkit/webkitglobals.cpp: 13 (webkit_context_menu_item_get_action): 14 * webkit/webkitwebview.cpp: 15 (webkit_web_view_button_press_event): 16 (webkit_web_view_class_init): 17 (webkit_web_view_init): 18 1 19 2012-04-03 Simon Pena <spena@igalia.com> 2 20 -
trunk/Source/WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp
r111847 r113147 19 19 20 20 #include "config.h" 21 22 #if ENABLE(CONTEXT_MENUS) 23 21 24 #include "ContextMenuClientGtk.h" 22 25 … … 162 165 } 163 166 167 #endif // ENABLE(CONTEXT_MENUS) 168 -
trunk/Source/WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h
r65021 r113147 26 26 #ifndef ContextMenuClientGtk_h 27 27 #define ContextMenuClientGtk_h 28 29 #if ENABLE(CONTEXT_MENUS) 28 30 29 31 #include "ContextMenuClient.h" … … 60 62 } 61 63 64 #endif // ENABLE(CONTEXT_MENUS) 62 65 #endif -
trunk/Source/WebKit/gtk/webkit/webkitglobals.cpp
r112401 r113147 403 403 WebKitContextMenuAction webkit_context_menu_item_get_action(GtkMenuItem* item) 404 404 { 405 #if ENABLE(CONTEXT_MENUS) 405 406 g_return_val_if_fail(GTK_IS_MENU_ITEM(item), WEBKIT_CONTEXT_MENU_ACTION_NO_ACTION); 406 407 … … 486 487 g_assert_not_reached(); 487 488 } 489 #else 490 return WEBKIT_CONTEXT_MENU_ACTION_NO_ACTION; 491 #endif 488 492 } 489 493 -
trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp
r112720 r113147 276 276 static GtkIMContext* webkit_web_view_get_im_context(WebKitWebView*); 277 277 278 #if ENABLE(CONTEXT_MENUS) 278 279 static void PopupMenuPositionFunc(GtkMenu* menu, gint *x, gint *y, gboolean *pushIn, gpointer userData) 279 280 { … … 299 300 *pushIn = FALSE; 300 301 } 302 #endif 301 303 302 304 static Node* getFocusedNode(Frame* frame) … … 307 309 } 308 310 311 #if ENABLE(CONTEXT_MENUS) 309 312 static void contextMenuItemActivated(GtkMenuItem* item, ContextMenuController* controller) 310 313 { … … 463 466 return webkit_web_view_forward_context_menu_event(WEBKIT_WEB_VIEW(widget), event, true); 464 467 } 468 #endif // ENABLE(CONTEXT_MENUS) 465 469 466 470 static void setHorizontalAdjustment(WebKitWebView* webView, GtkAdjustment* adjustment) … … 761 765 platformEvent.setClickCount(count); 762 766 767 #if ENABLE(CONTEXT_MENUS) 763 768 if (event->button == 3) 764 769 return webkit_web_view_forward_context_menu_event(webView, PlatformMouseEvent(event), false); 770 #endif 765 771 766 772 Frame* frame = core(webView)->mainFrame(); … … 2934 2940 widgetClass->get_preferred_height = webkit_web_view_get_preferred_height; 2935 2941 #endif 2942 #if ENABLE(CONTEXT_MENUS) 2936 2943 widgetClass->popup_menu = webkit_web_view_popup_menu_handler; 2944 #else 2945 widgetClass->popup_menu = NULL; 2946 #endif 2937 2947 widgetClass->grab_focus = webkit_web_view_grab_focus; 2938 2948 widgetClass->focus_in_event = webkit_web_view_focus_in_event; … … 3565 3575 Page::PageClients pageClients; 3566 3576 pageClients.chromeClient = new WebKit::ChromeClient(webView); 3577 #if ENABLE(CONTEXT_MENUS) 3567 3578 pageClients.contextMenuClient = new WebKit::ContextMenuClient(webView); 3579 #endif 3568 3580 pageClients.editorClient = new WebKit::EditorClient(webView); 3569 3581 pageClients.dragClient = new WebKit::DragClient(webView);
Note:
See TracChangeset
for help on using the changeset viewer.