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

Unified Diff: chrome/browser/chromeos/login/helper.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/helper.h ('k') | chrome/browser/chromeos/login/network_selection_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/helper.cc
diff --git a/chrome/browser/chromeos/login/helper.cc b/chrome/browser/chromeos/login/helper.cc
index b3905c08153172e1855ebb24ca872284c4275212..1b7ebbaaaeabee35eb8cfcd7dd0c3b05bcfe8b21 100644
--- a/chrome/browser/chromeos/login/helper.cc
+++ b/chrome/browser/chromeos/login/helper.cc
@@ -10,6 +10,7 @@
#include "googleurl/src/gurl.h"
#include "grit/theme_resources.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
+#include "views/controls/button/menu_button.h"
#include "views/controls/button/native_button.h"
#include "views/controls/label.h"
#include "views/controls/textfield/textfield.h"
@@ -102,6 +103,11 @@ void CorrectLabelFontSize(views::Label* label) {
label->SetFont(label->font().DeriveFont(kFontSizeCorrectionDelta));
}
+void CorrectMenuButtonFontSize(views::MenuButton* button) {
+ if (button)
+ button->SetFont(button->font().DeriveFont(kFontSizeCorrectionDelta));
+}
+
void CorrectNativeButtonFontSize(views::NativeButton* button) {
if (button)
button->set_font(button->font().DeriveFont(kFontSizeCorrectionDelta));
@@ -123,6 +129,7 @@ const int kButtonMinWidth = 90;
gfx::Size WideButton::GetPreferredSize() {
gfx::Size preferred_size = NativeButton::GetPreferredSize();
+ // Set minimal width.
if (preferred_size.width() < kButtonMinWidth)
preferred_size.set_width(kButtonMinWidth);
return preferred_size;
« no previous file with comments | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/network_selection_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698