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

Unified Diff: ui/views/controls/textfield/textfield.cc

Issue 1029543002: Make the textfield in app_list and find_bar not support suggestions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « ui/views/controls/textfield/textfield.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698