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

Unified Diff: content/renderer/render_widget.cc

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased after blink issue fixed: r200194 Created 5 years, 4 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/content_tests.gypi ('k') | content/test/BUILD.gn » ('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 de20caf2724e8f389e2e09da0199f835c5d17a94..bf1d60b78acdeac9d651c8089b86dbc4441d965e 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1968,10 +1968,20 @@ void RenderWidget::UpdateSelectionBounds() {
if (handling_ime_event_)
return;
+#if defined(USE_AURA)
+ // TODO(mohsen): For now, always send explicit selection IPC notifications for
+ // Aura beucause composited selection updates are not working for webview tags
+ // which regresses IME inside webview. Remove this when composited selection
+ // updates are fixed for webviews. See, http://crbug.com/510568.
+ bool send_ipc = true;
+#else
// With composited selection updates, the selection bounds will be reported
// directly by the compositor, in which case explicit IPC selection
// notifications should be suppressed.
- if (!blink::WebRuntimeFeatures::isCompositedSelectionUpdateEnabled()) {
+ bool send_ipc =
+ !blink::WebRuntimeFeatures::isCompositedSelectionUpdateEnabled();
+#endif
+ if (send_ipc) {
ViewHostMsg_SelectionBounds_Params params;
GetSelectionBounds(&params.anchor_rect, &params.focus_rect);
if (selection_anchor_rect_ != params.anchor_rect ||
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698