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

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

Issue 7027014: Remove unused multiline attribute in textfield (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing unused multiline attribute in Textfield Created 9 years, 7 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
Index: views/controls/textfield/textfield.h
diff --git a/views/controls/textfield/textfield.h b/views/controls/textfield/textfield.h
index a07b6f1e86528da5d419da825ed3c267e56e53bc..3614504c241093ee619b6f036edf497aa3caaf58 100644
--- a/views/controls/textfield/textfield.h
+++ b/views/controls/textfield/textfield.h
@@ -49,8 +49,7 @@ class Textfield : public View {
enum StyleFlags {
STYLE_DEFAULT = 0,
STYLE_PASSWORD = 1 << 0,
- STYLE_MULTILINE = 1 << 1,
- STYLE_LOWERCASE = 1 << 2
+ STYLE_LOWERCASE = 1 << 1
};
Textfield();
@@ -69,10 +68,6 @@ class Textfield : public View {
bool IsPassword() const;
void SetPassword(bool password);
- // Whether the text field is multi-line or not, must be set when the text
- // field is created, using StyleFlags.
- bool IsMultiLine() const;
-
// Gets/Sets the text currently displayed in the Textfield.
const string16& text() const { return text_; }
void SetText(const string16& text);
@@ -132,10 +127,6 @@ class Textfield : public View {
// NOTE: in most cases height could be changed instead.
void SetVerticalMargins(int top, int bottom);
- // Should only be called on a multi-line text field. Sets how many lines of
- // text can be displayed at once by this text field.
- void SetHeightInLines(int num_lines);
-
// Sets the default width of the text control. See default_width_in_chars_.
void set_default_width_in_chars(int default_width) {
default_width_in_chars_ = default_width;
@@ -266,9 +257,6 @@ class Textfield : public View {
// Textfield's background color.
bool use_default_background_color_;
- // The number of lines of text this Textfield displays at once.
- int num_lines_;
-
// TODO(beng): remove this once NativeTextfieldWin subclasses
// NativeControlWin.
bool initialized_;

Powered by Google App Engine
This is Rietveld 408576698