| Index: views/controls/textfield/textfield.h
|
| diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h
|
| index ad0198cfef7bcb414a7f4a0e90721789dec0bb49..722a2c767f1942c74bbdf15d90ca18eeda7852ab 100644
|
| --- a/views/controls/textfield/textfield.h
|
| +++ b/views/controls/textfield/textfield.h
|
| @@ -18,6 +18,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/string16.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| +#include "ui/base/ime/text_input_type.h"
|
| #include "ui/base/keycodes/keyboard_codes.h"
|
| #include "ui/gfx/font.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| @@ -66,9 +67,16 @@ class VIEWS_EXPORT Textfield : public View {
|
| void SetReadOnly(bool read_only);
|
|
|
| // Gets/Sets whether or not this Textfield is a password field.
|
| + // TODO(bryeung): Currently this is only used in
|
| + // chrome/browser/chromeos/options/wifi_config_view.cc, which is being
|
| + // converted to WebUI. Please remove this when that happens.
|
| bool IsPassword() const;
|
| void SetPassword(bool password);
|
|
|
| + // Gets/Sets the input type of this textfield.
|
| + ui::TextInputType GetTextInputType() const;
|
| + void SetTextInputType(ui::TextInputType type);
|
| +
|
| // Gets/Sets the text currently displayed in the Textfield.
|
| const string16& text() const { return text_; }
|
|
|
| @@ -291,6 +299,9 @@ class VIEWS_EXPORT Textfield : public View {
|
| // The accessible name of the text field.
|
| string16 accessible_name_;
|
|
|
| + // The input type of this text field.
|
| + ui::TextInputType text_input_type_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(Textfield);
|
| };
|
|
|
|
|