| Index: views/controls/textfield/textfield.h
|
| diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h
|
| index ad0198cfef7bcb414a7f4a0e90721789dec0bb49..5e37ddf0d91364438745e51c6b9feacaf2136d9a 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"
|
| @@ -69,6 +70,10 @@ class VIEWS_EXPORT Textfield : public View {
|
| 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 +296,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);
|
| };
|
|
|
|
|