Chromium Code Reviews| 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..093a2185e143ee780173676baf768c81da28c3c9 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. |
|
Charlie Reis
2016/11/16 20:28:23
I'm having trouble understanding this vs GetFocuse
avallee
2016/11/16 21:18:10
See the <webview> focus explainer for extra detail
Charlie Reis
2016/11/16 21:51:19
Ok. I think more of this needs to come across in
alexmos
2016/11/16 23:29:03
+1 to making all relevant comments emphasize that
Charlie Reis
2016/11/17 00:49:47
Looks like this was overlooked.
|
| + 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 |
| + // focused. |
| + virtual void EnsureOwningContentsIsFocused( |
|
Charlie Reis
2016/11/16 20:28:23
We should try to be more direct in the name, since
avallee
2016/11/16 21:18:10
Good idea. Done.
|
| + 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, |