| Index: content/browser/renderer_host/render_widget_host_delegate.h
|
| diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
|
| index 46129fdd012affd19c87fbf2b028bc03bc6fb141..60f63172f7ea9a837cefb319ad3fe61724e6e897 100644
|
| --- a/content/browser/renderer_host/render_widget_host_delegate.h
|
| +++ b/content/browser/renderer_host/render_widget_host_delegate.h
|
| @@ -145,6 +145,18 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
| virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost(
|
| RenderWidgetHostImpl* receiving_widget);
|
|
|
| + // Get the RenderWidgetHost that should receive page level focus events. This
|
| + // will be the widget that is rendering the main frame of the currently
|
| + // focused WebContents.
|
| + virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus();
|
| +
|
| + // In cases with multiple RenderWidgetHosts involved in rendering a page, only
|
| + // one widget should be focused and active. This ensures that
|
| + // |render_widget_host| is focused and that its owning WebContents is also
|
| + // the focused WebContents.
|
| + virtual void FocusOwningWebContents(
|
| + RenderWidgetHostImpl* render_widget_host) {}
|
| +
|
| // Notification that the renderer has become unresponsive. The
|
| // delegate can use this notification to show a warning to the user.
|
| virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host,
|
|
|