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

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: review comments 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..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);
};
« 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