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

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

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/app_list/views/search_box_view.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index b87953c8634d59c57533d8e3b97534a1ae11592a..b931b70a42d9397bb9c5c944ef5d6566ff669ca3 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -66,6 +66,10 @@ class VIEWS_EXPORT Textfield : public View,
// Sets the input type; displays only asterisks for TEXT_INPUT_TYPE_PASSWORD.
void SetTextInputType(ui::TextInputType type);
+ // Sets the input flags so that the system input methods can turn on/off some
+ // features. The flags is the bit map of ui::TextInputFlags.
+ void SetTextInputFlags(int flags);
+
// Gets the text currently displayed in the Textfield.
const base::string16& text() const { return model_->text(); }
@@ -431,6 +435,9 @@ class VIEWS_EXPORT Textfield : public View,
// The input type of this text field.
ui::TextInputType text_input_type_;
+ // The input flags of this text field.
+ int text_input_flags_;
+
// The duration and timer to reveal the last typed password character.
base::TimeDelta password_reveal_duration_;
base::OneShotTimer<Textfield> password_reveal_timer_;
« no previous file with comments | « ui/app_list/views/search_box_view.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698