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

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

Issue 25039002: Always aligns text at vertically center (Textfield, Label). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Worked on pkasting's minor comment. Created 7 years, 2 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: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index 0162830122f18ee34e305d59f9410d8b7686c0ed..f28af05400b4fcbbb8000df073ff3e872a7cc1c4 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -157,12 +157,6 @@ class VIEWS_EXPORT Textfield : public View {
// NOTE: in most cases height could be changed instead.
void SetVerticalMargins(int top, int bottom);
- // Set the text vertical alignment. Text is vertically centered by default.
- gfx::VerticalAlignment vertical_alignment() const {
- return vertical_alignment_;
- }
- void SetVerticalAlignment(gfx::VerticalAlignment alignment);
-
// 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;
@@ -336,9 +330,6 @@ class VIEWS_EXPORT Textfield : public View {
bool horizontal_margins_were_set_;
bool vertical_margins_were_set_;
- // The vertical alignment of text in the Textfield.
- gfx::VerticalAlignment vertical_alignment_;
-
// Text to display when empty.
string16 placeholder_text_;

Powered by Google App Engine
This is Rietveld 408576698