diff options
Diffstat (limited to 'content/browser/renderer_host/render_view_host.h')
-rw-r--r-- | content/browser/renderer_host/render_view_host.h | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/content/browser/renderer_host/render_view_host.h b/content/browser/renderer_host/render_view_host.h index 29fa004..582c918 100644 --- a/content/browser/renderer_host/render_view_host.h +++ b/content/browser/renderer_host/render_view_host.h @@ -43,6 +43,7 @@ struct ViewMsg_Navigate_Params; struct WebDropData; struct UserMetricsAction; struct ViewHostMsg_RunFileChooser_Params; +struct ViewMsg_StopFinding_Params; namespace base { class ListValue; @@ -58,6 +59,7 @@ class Range; namespace webkit_glue { struct WebAccessibility; +struct CustomContextMenuContext; } // namespace webkit_glue namespace WebKit { @@ -322,10 +324,6 @@ class CONTENT_EXPORT RenderViewHost : public RenderWidgetHost { sudden_termination_allowed_ = enabled; } - // Message the renderer that we should be counted as a new document and not - // as a popup. - void DisassociateFromPopupCount(); - // RenderWidgetHost public overrides. virtual void Shutdown(); virtual bool IsRenderView() const; @@ -411,6 +409,37 @@ class CONTENT_EXPORT RenderViewHost : public RenderWidgetHost { // Instructs the RenderView to send back updates to the preferred size. void EnablePreferredSizeMode(int flags); + // Executes custom context menu action that was provided from WebKit. + void ExecuteCustomContextMenuCommand( + int action, const webkit_glue::CustomContextMenuContext& context); + + // Let the renderer know that the menu has been closed. + void NotifyContextMenuClosed( + const webkit_glue::CustomContextMenuContext& context); + + // Copies the image at location x, y to the clipboard (if there indeed is an + // image at that location). + void CopyImageAt(int x, int y); + + // Tells the renderer to perform the given action on the media player + // located at the given point. + void ExecuteMediaPlayerActionAtLocation( + const gfx::Point& location, const WebKit::WebMediaPlayerAction& action); + + // Sent to the renderer when a popup window should no longer count against + // the current popup count (either because it's not a popup or because it was + // a generated by a user action or because a constrained popup got turned + // into a full window). + void DisassociateFromPopupCount(); + + // Notification that a move or resize renderer's containing window has + // started. + void NotifyMoveOrResizeStarted(); + + // Notifies the renderer that the user has closed the FindInPage window + // (and what action to take regarding the selection). + void StopFinding(const ViewMsg_StopFinding_Params& params); + // NOTE: Do not add functions that just send an IPC message that are called in // one or two places. Have the caller send the IPC message directly. |