Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1016)

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 2878153002: Fixed some edit commands for OOPIF-<webivew> (Mac) (Closed)
Patch Set: Addressing creis@'s comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698