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

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: Synced. 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
« no previous file with comments | « ui/views/controls/textfield/native_textfield_wrapper.h ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index 4b255f04b899bd66c1e8360f6c5e4019c49304c7..57a547dae9c3c7a1efdb62e80b1518dfee86e029 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;
@@ -334,9 +328,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_;
« no previous file with comments | « ui/views/controls/textfield/native_textfield_wrapper.h ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698