| 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..8482d5aae157f918e9ab484c95987f111416d241 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_base.h
|
| +++ b/content/browser/renderer_host/render_widget_host_view_base.h
|
| @@ -84,7 +84,15 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
| return current_device_scale_factor_;
|
| }
|
|
|
| + // Returns the view which is inside |view| and is currently focused (i.e.,
|
| + // accepts input events). It might return nullptr if |view| does not have a
|
| + // RenderWidgetHost or the focused widget returned by RenderWidgetHostDelegate
|
| + // for the |view|'s RWH is nullptr.
|
| + static RenderWidgetHostViewBase* GetFocusedSubView(
|
| + RenderWidgetHostViewBase* view);
|
| +
|
| // RenderWidgetHostView implementation.
|
| + RenderWidgetHost* GetRenderWidgetHost() const override;
|
| void SetBackgroundColor(SkColor color) override;
|
| void SetBackgroundColorToDefault() final;
|
| bool GetBackgroundOpaque() override;
|
| @@ -411,6 +419,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_;
|
|
|