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

Unified Diff: content/renderer/render_widget.h

Issue 29943002: Limit display of the virtual keyboard to state changes triggered from a user gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 39870645e3f78be7ce68563f2ed1a442aba7c3e5..04db5bd34157151ced02eae4b14a3087609717d3 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -354,8 +354,10 @@ class CONTENT_EXPORT RenderWidget
void OnGetFPS();
void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
const gfx::Rect& window_screen_rect);
+#if defined(OS_ANDROID) || defined(USE_AURA)
#if defined(OS_ANDROID)
void OnShowImeIfNeeded();
+#endif
// Whenever an IME event that needs an acknowledgement is sent to the browser,
// the number of outstanding IME events that needs acknowledgement should be
@@ -445,7 +447,7 @@ class CONTENT_EXPORT RenderWidget
// If they are changed, the new value will be sent to the browser process.
void UpdateTextInputType();
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(USE_AURA)
// |show_ime_if_needed| should be true iff the update may cause the ime to be
// displayed, e.g. after a tap on an input field on mobile.
// |send_ime_ack| should be true iff the browser side is required to
@@ -770,7 +772,7 @@ class CONTENT_EXPORT RenderWidget
uint32 next_output_surface_id_;
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(USE_AURA)
// A counter for number of outstanding messages from the renderer to the
// browser regarding IME-type events that have not been acknowledged by the
// browser. If this value is not 0 IME events will be dropped.

Powered by Google App Engine
This is Rietveld 408576698