Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index 717d94837c80caa571760d69a1e743d4ee7e595f..6ca37f960c9cba3cbe5bbbeb6e7bc75e4b21bf71 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -268,6 +268,7 @@ Textfield::Textfield() |
selection_background_color_(SK_ColorBLUE), |
placeholder_text_color_(kDefaultPlaceholderTextColor), |
text_input_type_(ui::TEXT_INPUT_TYPE_TEXT), |
+ text_input_flags_(0), |
performing_user_action_(false), |
skip_input_method_cancel_composition_(false), |
cursor_visible_(false), |
@@ -308,6 +309,10 @@ void Textfield::SetTextInputType(ui::TextInputType type) { |
SchedulePaint(); |
} |
+void Textfield::SetTextInputFlags(int flags) { |
+ text_input_flags_ = flags; |
+} |
+ |
void Textfield::SetText(const base::string16& new_text) { |
model_->SetText(new_text); |
OnCaretBoundsChanged(); |
@@ -1467,7 +1472,7 @@ ui::TextInputMode Textfield::GetTextInputMode() const { |
} |
int Textfield::GetTextInputFlags() const { |
- return 0; |
+ return text_input_flags_; |
} |
bool Textfield::CanComposeInline() const { |