Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: Source/WebCore/page/ContextMenuClient.h

Issue 14185003: Use ContextMenu code path that was guarded by CROSS_PLATFORM_CONTEXT_MENU (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use ContextMenu code path that was guarded by CROSS_PLATFORM_CONTEXT_MENU Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/loader/EmptyClients.cpp ('k') | Source/WebCore/page/ContextMenuController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/page/ContextMenuClient.h
diff --git a/Source/WebCore/page/ContextMenuClient.h b/Source/WebCore/page/ContextMenuClient.h
index 1a9382a61b149315163d22a04bac0bb8af2af49d..7bb2021be36d8d45e4daa793a97e8222ca9521a2 100644
--- a/Source/WebCore/page/ContextMenuClient.h
+++ b/Source/WebCore/page/ContextMenuClient.h
@@ -29,7 +29,6 @@
#if ENABLE(CONTEXT_MENUS)
#include "ContextMenu.h"
-#include "PlatformMenuDescription.h"
#include <wtf/Forward.h>
#include <wtf/PassOwnPtr.h>
@@ -43,14 +42,10 @@ namespace WebCore {
public:
virtual ~ContextMenuClient() { }
virtual void contextMenuDestroyed() = 0;
-
-#if USE(CROSS_PLATFORM_CONTEXT_MENUS)
+
virtual PassOwnPtr<ContextMenu> customizeMenu(PassOwnPtr<ContextMenu>) = 0;
-#else
- virtual PlatformMenuDescription getCustomMenuFromDefaultItems(ContextMenu*) = 0;
-#endif
- virtual void contextMenuItemSelected(ContextMenuItem*, const ContextMenu*) = 0;
+ virtual void contextMenuItemSelected(const ContextMenuItem*, const ContextMenu*) = 0;
virtual void downloadURL(const KURL& url) = 0;
virtual void searchWithGoogle(const Frame*) = 0;
« no previous file with comments | « Source/WebCore/loader/EmptyClients.cpp ('k') | Source/WebCore/page/ContextMenuController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698