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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 23445020: Support inputmode attribute for Windows Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 4a0cab73b776e599d9f5dddca260ab5b2eb92c26..f6a1215751cbb781709c6c8c31e07e145a13c70c 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -646,6 +646,7 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host)
popup_child_host_view_(NULL),
is_loading_(false),
text_input_type_(ui::TEXT_INPUT_TYPE_NONE),
+ text_input_mode_(ui::TEXT_INPUT_MODE_DEFAULT),
can_compose_inline_(true),
has_composition_text_(false),
last_swapped_surface_scale_factor_(1.f),
@@ -1042,8 +1043,10 @@ void RenderWidgetHostViewAura::TextInputTypeChanged(
bool can_compose_inline,
ui::TextInputMode input_mode) {
if (text_input_type_ != type ||
+ text_input_mode_ != input_mode ||
can_compose_inline_ != can_compose_inline) {
text_input_type_ = type;
+ text_input_mode_ = input_mode;
can_compose_inline_ = can_compose_inline;
if (GetInputMethod())
GetInputMethod()->OnTextInputTypeChanged(this);
@@ -2183,7 +2186,7 @@ ui::TextInputType RenderWidgetHostViewAura::GetTextInputType() const {
}
ui::TextInputMode RenderWidgetHostViewAura::GetTextInputMode() const {
- return ui::TEXT_INPUT_MODE_DEFAULT;
+ return text_input_mode_;
}
bool RenderWidgetHostViewAura::CanComposeInline() const {

Powered by Google App Engine
This is Rietveld 408576698