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

Unified Diff: content/renderer/render_widget.cc

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, 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 0dc182e3f1ed60396beeae394332b6273574dcd6..9b0e73eecc46b46fe72c1752703e02c35a135eae 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1499,6 +1499,9 @@ void RenderWidget::DoDeferredUpdate() {
// 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 @@ void RenderWidget::willBeginCompositorFrame() {
UpdateTextInputType();
#if defined(OS_ANDROID)
UpdateTextInputState(false, true);
+ UpdateSelectionRootBounds();
#endif
UpdateSelectionBounds();
}
@@ -2419,6 +2423,9 @@ void RenderWidget::FinishHandlingImeEvent() {
// 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 @@ void RenderWidget::setTouchAction(
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;
}
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698