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

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

Issue 7826039: Identify the omnibox as a URL field. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « views/controls/textfield/native_textfield_views_unittest.cc ('k') | views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « views/controls/textfield/native_textfield_views_unittest.cc ('k') | views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698