Chromium Code Reviews| 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; |