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

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

Issue 4252002: address comments in CL 4054001 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/shutdown_button.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/shutdown_button.cc
diff --git a/chrome/browser/chromeos/login/shutdown_button.cc b/chrome/browser/chromeos/login/shutdown_button.cc
index b677915a7415f3c2426c3fd143d59567c64b7934..5e79c402a4294a18da86dcb8cc446f41656bb1d7 100644
--- a/chrome/browser/chromeos/login/shutdown_button.cc
+++ b/chrome/browser/chromeos/login/shutdown_button.cc
@@ -17,10 +17,24 @@
namespace {
-// Bottom/Right Padding for Shutdown button.
+// Style parameters for Shutdown button.
+
+// Bottom/Right padding to locale the shutdown button.
const int kBottomPadding = 12;
const int kRightPadding = 12;
+// Normal/Hover colors.
+const SkColor kButtonColor = 0xFF242A35;
+const SkColor kHoverColor = 0xFF353E4E;
+
+// Padding inside button.
+const int kVerticalPadding = 13;
+const int kIconTextPadding = 10;
+const int kHorizontalPadding = 13;
+
+// Rounded corner radious.
+const int kCornerRadius = 4;
+
class HoverBackground : public views::Background {
public:
HoverBackground(views::Background* normal, views::Background* hover)
@@ -53,13 +67,6 @@ ShutdownButton::ShutdownButton()
}
void ShutdownButton::Init() {
- SkColor kButtonColor = 0xFF242A35;
- SkColor kHoverColor = 0xFF353E4E;
- int kVerticalPadding = 13;
- int kIconTextPadding = 10;
- int kHorizontalPadding = 13;
- int kCornerRadius = 4;
-
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
SetIcon(*rb.GetBitmapNamed(IDR_SHUTDOWN_ICON));
set_icon_text_spacing(kIconTextPadding);
« no previous file with comments | « chrome/browser/chromeos/login/shutdown_button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698