| Index: views/controls/textfield/textfield.cc
|
| diff --git a/views/controls/textfield/textfield.cc b/views/controls/textfield/textfield.cc
|
| index 8061126d257cd0d41f57000510b0c9985f041461..df7a4394600fb503b9c2ab50cd019781f8294eba 100644
|
| --- a/views/controls/textfield/textfield.cc
|
| +++ b/views/controls/textfield/textfield.cc
|
| @@ -107,6 +107,17 @@ void Textfield::SetPassword(bool password) {
|
| native_wrapper_->UpdateIsPassword();
|
| }
|
|
|
| +bool Textfield::IsUrl() const {
|
| + return style_ & STYLE_URL;
|
| +}
|
| +
|
| +void Textfield::SetUrl(bool url) {
|
| + if (url)
|
| + style_ = static_cast<StyleFlags>(style_ | STYLE_URL);
|
| + else
|
| + style_ = static_cast<StyleFlags>(style_ & ~STYLE_URL);
|
| +}
|
| +
|
| void Textfield::SetText(const string16& text) {
|
| text_ = text;
|
| if (native_wrapper_)
|
|
|