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 59579822a5d5aba35cca6d9d17623fd83ceac010..a7314da520a53de1004b9db2cd8932af15136781 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_mac.h |
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h |
@@ -302,6 +302,8 @@ class CONTENT_EXPORT RenderWidgetHostViewMac |
std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
void EndFrameSubscription() override; |
ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; |
+ void FocusedNodeChanged(bool is_editable_node, |
+ const gfx::Rect& node_bounds_in_screen) override; |
void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, |
cc::CompositorFrame frame) override; |
void ClearCompositorFrame() override; |
@@ -353,6 +355,9 @@ class CONTENT_EXPORT RenderWidgetHostViewMac |
void OnImeCompositionRangeChanged( |
TextInputManager* text_input_manager, |
RenderWidgetHostViewBase* updated_view) override; |
+ void OnSelectionBoundsChanged( |
+ TextInputManager* text_input_manager, |
+ RenderWidgetHostViewBase* updated_view) override; |
void OnTextSelectionChanged(TextInputManager* text_input_manager, |
RenderWidgetHostViewBase* updated_view) override; |
// IPC::Sender implementation. |
@@ -491,6 +496,9 @@ class CONTENT_EXPORT RenderWidgetHostViewMac |
// Dispatches a TTS session. |
void SpeakText(const std::string& text); |
+ // Get the focused view that should be used for retrieving the text selection. |
+ RenderWidgetHostViewBase* GetFocusedViewForTextSelection(); |
+ |
// The associated view. This is weak and is inserted into the view hierarchy |
// to own this RenderWidgetHostViewMac object. Set to nil at the start of the |
// destructor. |