Chromium Code Reviews| Index: views/controls/textfield/textfield.h |
| diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h |
| index ad0198cfef7bcb414a7f4a0e90721789dec0bb49..a15627e0791acfef0d3037b617d592064edf6b08 100644 |
| --- a/views/controls/textfield/textfield.h |
| +++ b/views/controls/textfield/textfield.h |
| @@ -50,7 +50,8 @@ class VIEWS_EXPORT Textfield : public View { |
| enum StyleFlags { |
| STYLE_DEFAULT = 0, |
| STYLE_PASSWORD = 1 << 0, |
| - STYLE_LOWERCASE = 1 << 1 |
| + STYLE_LOWERCASE = 1 << 1, |
| + STYLE_URL = 1 << 2 |
|
oshima
2011/09/02 20:54:02
I'm a bit worried about expanding this for input t
|
| }; |
| Textfield(); |
| @@ -69,6 +70,10 @@ class VIEWS_EXPORT Textfield : public View { |
| bool IsPassword() const; |
| void SetPassword(bool password); |
| + // Gets/Sets whether or not this Textfield is a URL field. |
| + bool IsUrl() const; |
| + void SetUrl(bool password); |
| + |
| // Gets/Sets the text currently displayed in the Textfield. |
| const string16& text() const { return text_; } |