Chromium plumbing to use the selection root bounds.
This is asking the selection root bounds to Blink and send it back to
the RenderWidgetHostView implementation in the browser process.
BUG=236033
Review URL: https://codereview.chromium.org/186753002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257199 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 0dc182e..9b0e73e 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1499,6 +1499,9 @@
// enable GPU acceleration so they need to be called before any painting
// is done.
UpdateTextInputType();
+#if defined(OS_ANDROID)
+ UpdateSelectionRootBounds();
+#endif
UpdateSelectionBounds();
// Suppress painting if nothing is dirty. This has to be done after updating
@@ -1916,6 +1919,7 @@
UpdateTextInputType();
#if defined(OS_ANDROID)
UpdateTextInputState(false, true);
+ UpdateSelectionRootBounds();
#endif
UpdateSelectionBounds();
}
@@ -2419,6 +2423,9 @@
// While handling an ime event, text input state and selection bounds updates
// are ignored. These must explicitly be updated once finished handling the
// ime event.
+#if defined(OS_ANDROID)
+ UpdateSelectionRootBounds();
+#endif
UpdateSelectionBounds();
#if defined(OS_ANDROID)
UpdateTextInputState(false, false);
@@ -2761,6 +2768,11 @@
Send(new InputHostMsg_SetTouchAction(routing_id_, content_touch_action));
}
+#if defined(OS_ANDROID)
+void RenderWidget::UpdateSelectionRootBounds() {
+}
+#endif
+
bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const {
return true;
}