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

Unified Diff: chrome/browser/chromeos/login/textfield_with_margin.cc

Issue 5338002: [cros] Use WideButton for all screens, increase textfield vmargin on login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved ctor empty body to cc Created 10 years, 1 month 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 | « chrome/browser/chromeos/login/textfield_with_margin.h ('k') | views/controls/button/text_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/textfield_with_margin.cc
diff --git a/chrome/browser/chromeos/login/textfield_with_margin.cc b/chrome/browser/chromeos/login/textfield_with_margin.cc
index 7f8edd2dbb3f617d6be24ebe2b3aade68c7d3f64..8ad4cee430ef64c097cf88b9520194f3e0f44749 100644
--- a/chrome/browser/chromeos/login/textfield_with_margin.cc
+++ b/chrome/browser/chromeos/login/textfield_with_margin.cc
@@ -9,13 +9,20 @@ namespace {
// Holds ratio of the margin to the preferred text height.
const double kTextMarginRate = 0.33;
+// Size of each vertical margin (top, bottom).
+const int kVerticalMargin = 3;
+
} // namespace
namespace chromeos {
+TextfieldWithMargin::TextfieldWithMargin() {
+}
+
void TextfieldWithMargin::Layout() {
int margin = GetPreferredSize().height() * kTextMarginRate;
SetHorizontalMargins(margin, margin);
+ SetVerticalMargins(kVerticalMargin, kVerticalMargin);
views::Textfield::Layout();
}
« no previous file with comments | « chrome/browser/chromeos/login/textfield_with_margin.h ('k') | views/controls/button/text_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698