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

Unified Diff: public/web/WebFrameClient.h

Issue 183693004: Move showContextMenu from WebViewClient to WebFrameClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update with workaround for clang warning Created 6 years, 10 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/web/ContextMenuClientImpl.cpp ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrameClient.h
diff --git a/public/web/WebFrameClient.h b/public/web/WebFrameClient.h
index 1fd36217f25b4a28f31d6302d5bcda9653dec15a..1683ad65531afd5defd002bbd13ba8b475ce4c9e 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -47,6 +47,9 @@
#include "public/platform/WebURLRequest.h"
#include <v8.h>
+// FIXME(jam): remove after roll
+#define SHOW_CONTEXT_MENU_ON_WEB_FRAME_CLIENT
+
namespace blink {
class WebApplicationCacheHost;
@@ -73,6 +76,7 @@ class WebURL;
class WebURLLoader;
class WebURLResponse;
class WebWorkerPermissionClientProxy;
+struct WebContextMenuData;
struct WebPluginParams;
struct WebRect;
struct WebSize;
@@ -221,6 +225,13 @@ public:
virtual void didUpdateCurrentHistoryItem(WebFrame*) { }
+ // UI ------------------------------------------------------------------
+
+ // Shows a context menu with commands relevant to a specific element on
+ // the given frame. Additional context data is supplied.
+ virtual void showContextMenu(const WebContextMenuData&) { }
+
+
// Low-level resource notifications ------------------------------------
// An element will request a resource.
« no previous file with comments | « Source/web/ContextMenuClientImpl.cpp ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698