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

Unified Diff: content/public/browser/render_frame_host.h

Issue 130773004: Start moving context menu code to RenderFrame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
Index: content/public/browser/render_frame_host.h
===================================================================
--- content/public/browser/render_frame_host.h (revision 247964)
+++ content/public/browser/render_frame_host.h (working copy)
@@ -14,6 +14,7 @@
class RenderProcessHost;
class RenderViewHost;
class SiteInstance;
+struct CustomContextMenuContext;
// The interface provides a communication conduit with a frame in the renderer.
class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
@@ -36,6 +37,14 @@
// Returns the associated widget's native view.
virtual gfx::NativeView GetNativeView() = 0;
+ // Let the renderer know that the menu has been closed.
+ virtual void NotifyContextMenuClosed(
+ const CustomContextMenuContext& context) = 0;
+
+ // Executes custom context menu action that was provided from WebKit.
nasko 2014/01/31 00:38:17 nit: Blink?
jam 2014/01/31 00:45:53 Done.
+ virtual void ExecuteCustomContextMenuCommand(
+ int action, const CustomContextMenuContext& context) = 0;
+
// Temporary until we get rid of RenderViewHost.
virtual RenderViewHost* GetRenderViewHost() = 0;

Powered by Google App Engine
This is Rietveld 408576698