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

Unified Diff: content/renderer/render_widget.h

Issue 10962011: Allow tap gestures to open the IME on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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 119c651aa5b56eecdd929641037a933de78b8770..7c9366d0c0b79190da3d97310f734fd07bd28f9e 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -349,9 +349,16 @@ class CONTENT_EXPORT RenderWidget
throttle_input_events_ = throttle_input_events;
}
+ enum ShowIme {
+ DO_NOT_SHOW_IME,
+ SHOW_IME_IF_NEEDED
+ };
+
// Checks if the text input state and compose inline mode have been changed.
// If they are changed, the new value will be sent to the browser process.
- void UpdateTextInputState();
+ // |show_ime_if_needed| should be SHOW_IME_IF_NEEDED iff the update may cause
+ // the ime to be displayed, e.g. after a tap on an input field on mobile.
+ void UpdateTextInputState(ShowIme show_ime);
// Checks if the selection bounds have been changed. If they are changed,
// the new value will be sent to the browser process.

Powered by Google App Engine
This is Rietveld 408576698