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

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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 119c651aa5b56eecdd929641037a933de78b8770..1f477b96fad1ca40ad9f60caed9a45abe6942d2a 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -185,6 +185,11 @@ class CONTENT_EXPORT RenderWidget
return filtered_time_per_frame_;
}
+ enum ShowIme {
+ DO_NOT_SHOW_IME,
+ SHOW_IME_IF_NEEDED
+ };
+
protected:
// Friend RefCounted so that the dtor can be non-public. Using this class
// without ref-counting is an error.
@@ -351,7 +356,9 @@ class CONTENT_EXPORT RenderWidget
// 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.
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698