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

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

Issue 4179001: [cros] Fix UI issues on SignIn pod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 10 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 | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/login_screen.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 d2da133dbed18348ba389cdf31dcf146217a91dd..c3cec3e02325d3295185750ea2b312b8a50ca446 100644
--- a/chrome/browser/chromeos/login/helper.cc
+++ b/chrome/browser/chromeos/login/helper.cc
@@ -10,6 +10,8 @@
#include "googleurl/src/gurl.h"
#include "grit/theme_resources.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
+#include "views/controls/button/native_button.h"
+#include "views/controls/textfield/textfield.h"
#include "views/controls/throbber.h"
#include "views/painter.h"
#include "views/screen.h"
@@ -18,10 +20,13 @@ namespace chromeos {
namespace {
+// Font size correction in points for login/oobe textfields/buttons.
+const int kFontSizeCorrectionDelta = 2;
+
// Time in ms per throbber frame.
const int kThrobberFrameMs = 60;
-// Time in ms before smothed throbber is shown.
+// Time in ms before smoothed throbber is shown.
const int kThrobberStartDelayMs = 500;
const SkColor kBackgroundCenterColor = SkColorSetRGB(41, 50, 67);
@@ -94,6 +99,16 @@ gfx::Rect CalculateScreenBounds(const gfx::Size& size) {
return bounds;
}
+void CorrectNativeButtonFontSize(views::NativeButton* button) {
+ if (button)
+ button->SetFont(button->font().DeriveFont(kFontSizeCorrectionDelta));
+}
+
+void CorrectTextfieldFontSize(views::Textfield* textfield) {
+ if (textfield)
+ textfield->SetFont(textfield->font().DeriveFont(kFontSizeCorrectionDelta));
+}
+
GURL GetAccountRecoveryHelpUrl() {
return google_util::AppendGoogleLocaleParam(GURL(kAccountRecoveryHelpUrl));
}
« no previous file with comments | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/login_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698