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

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

Issue 2354413003: Implement support for Mac Zoom following focus and caret (Closed)
Patch Set: Fix typo Created 4 years, 3 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 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.

Powered by Google App Engine
This is Rietveld 408576698