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

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: rebase on Blink patch and OS_ANDROID specific Created 6 years, 9 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..47fc92089f4ad6410f018b1ee289586f427ba11f 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -532,6 +532,12 @@ class CONTENT_EXPORT RenderWidget
// Tell the browser about the actions permitted for a new touch point.
virtual void setTouchAction(blink::WebTouchAction touch_action);
+#if defined(OS_ANDROID)
+ // Checks if the selection root bounds have changed. If they have changed, the
+ // new value will be sent to the browser process.
+ virtual void UpdateSelectionRootBounds() {}
jochen (gone - plz use gerrit) 2014/03/12 13:01:00 function body should be in .cc file
mlamouri (slow - plz ping) 2014/03/12 14:24:11 Done.
+#endif
+
// Creates a 3D context associated with this view.
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D(
const blink::WebGraphicsContext3D::Attributes& attributes);
@@ -675,6 +681,11 @@ class CONTENT_EXPORT RenderWidget
gfx::Rect selection_focus_rect_;
gfx::Rect selection_anchor_rect_;
+ // Stores the current selection root bounds.
+#if defined(OS_ANDROID)
+ gfx::Rect selection_root_rect_;
+#endif
+
// Stores the current composition character bounds.
std::vector<gfx::Rect> composition_character_bounds_;

Powered by Google App Engine
This is Rietveld 408576698