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

Unified Diff: content/renderer/render_widget.cc

Issue 1026493002: Allow only a user gesture to trigger autofill popup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not show autofill popup if desktop IME is composing. Created 5 years, 8 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.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 82e2b2b3f50de3220e0f956d3bfb59b35642d64f..1aab8b42fc06fd0573f5d5ab6d503e42ea25e637 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1679,19 +1679,10 @@ void RenderWidget::OnImeSetComposition(
int selection_start, int selection_end) {
if (!ShouldHandleImeEvent())
return;
-
- bool is_user_gesture = false;
-#if defined(OS_ANDROID)
- // Android keyboard goes into IME composition mode to suggest words as you
- // type. Mark IME composition as a user gesture on Android to enable such
- // features as autofill popup while in IME composition mode.
- is_user_gesture = true;
-#endif
-
ImeEventGuard guard(this);
- if (!webwidget_->setUserGestureComposition(
Evan Stade 2015/04/16 13:58:59 why can't I find the old function anywhere?
please use gerrit instead 2015/04/16 16:08:35 That's a function that I was going to add, but dec
+ if (!webwidget_->setComposition(
text, WebVector<WebCompositionUnderline>(underlines),
- selection_start, selection_end, is_user_gesture)) {
+ selection_start, selection_end)) {
// If we failed to set the composition text, then we need to let the browser
// process to cancel the input method's ongoing composition session, to make
// sure we are in a consistent state.

Powered by Google App Engine
This is Rietveld 408576698