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

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

Issue 2240553003: Track text selection on the browser side (Mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added #ifdef Created 4 years, 4 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_base.h
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
index 5bc917888e5766a6a63a2459e759934d8a036252..89c5a46e6f58ba64295f980d61ae1c7fe3f2bd31 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.h
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
@@ -68,6 +68,7 @@ class BrowserAccessibilityManager;
class RenderWidgetHostViewBaseObserver;
class SyntheticGesture;
class SyntheticGestureTarget;
+class RenderWidgetHostImpl;
class TextInputManager;
class WebCursor;
struct DidOverscrollParams;
@@ -84,7 +85,11 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
return current_device_scale_factor_;
}
+ // Returns the focused RenderWidgetHost inside this |view|'s RWH.
+ RenderWidgetHostImpl* GetFocusedWidget() const;
+
// RenderWidgetHostView implementation.
+ RenderWidgetHost* GetRenderWidgetHost() const override;
void SetBackgroundColor(SkColor color) override;
void SetBackgroundColorToDefault() final;
bool GetBackgroundOpaque() override;
@@ -411,6 +416,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
// |text_input_manager_|.
TextInputManager* GetTextInputManager();
+ // Returns the the view which has a RWH and is currently accepting input
+ // events (focused).
+ RenderWidgetHostViewBase* GetFocusedAttachedSubView() const;
+
// Whether this view is a popup and what kind of popup it is (select,
// autofill...).
blink::WebPopupType popup_type_;

Powered by Google App Engine
This is Rietveld 408576698