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

Unified Diff: content/renderer/render_widget.h

Issue 186753002: Chromium plumbing to use the selection root bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index fdd55c3cd70c044aff22dca7ff5e4c2247778050..cb398f17c7e5b6dfe9ffe9a2f0a628ee696605fe 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -232,6 +232,10 @@ class CONTENT_EXPORT RenderWidget
// the new value will be sent to the browser process.
void UpdateSelectionBounds();
+ // Checks if the selection root bounds have changed. If they have changed, the
+ // new value will be sent to the browser process.
+ void UpdateSelectionRootBounds();
+
void OnShowHostContextMenu(ContextMenuParams* params);
#if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA)
@@ -456,6 +460,7 @@ class CONTENT_EXPORT RenderWidget
// position.
virtual ui::TextInputType GetTextInputType();
virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end);
+ virtual void GetSelectionRootBounds(gfx::Rect* bounds);
virtual ui::TextInputType WebKitToUiTextInputType(
blink::WebTextInputType type);
@@ -675,6 +680,9 @@ class CONTENT_EXPORT RenderWidget
gfx::Rect selection_focus_rect_;
gfx::Rect selection_anchor_rect_;
+ // Stores the current selection root bounds.
+ gfx::Rect selection_root_rect_;
+
// Stores the current composition character bounds.
std::vector<gfx::Rect> composition_character_bounds_;

Powered by Google App Engine
This is Rietveld 408576698