| Index: content/browser/renderer_host/render_widget_host_view_mac.h
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
|
| index 3c7f8501fe8a8747dec418be451a49c9f74f64fd..75268164aa76527f32804196b8cb81bfba891e8a 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_mac.h
|
| +++ b/content/browser/renderer_host/render_widget_host_view_mac.h
|
| @@ -487,6 +487,13 @@ class CONTENT_EXPORT RenderWidgetHostViewMac
|
| // Get the focused view that should be used for retrieving the text selection.
|
| RenderWidgetHostViewBase* GetFocusedViewForTextSelection();
|
|
|
| + // Returns the RenderWidgetHostDelegate corresponding to the currently focused
|
| + // RenderWidgetHost. It is different from |render_widget_host_->delegate()|
|
| + // when there are focused inner WebContentses on the page. Also, this method
|
| + // can return nullptr; for instance when |render_widget_host_| becomes nullptr
|
| + // in the destruction path of the WebContentsImpl.
|
| + RenderWidgetHostDelegate* GetFocusedRenderWidgetHostDelegate();
|
| +
|
| private:
|
| friend class RenderWidgetHostViewMacTest;
|
|
|
|
|