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

Unified Diff: ash/system/logout_button/tray_logout_button.cc

Issue 12330002: Add views::Button style enum for LabelButton [native] styling, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 7 years, 10 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 | « no previous file | ash/system/tray/tray_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/logout_button/tray_logout_button.cc
diff --git a/ash/system/logout_button/tray_logout_button.cc b/ash/system/logout_button/tray_logout_button.cc
index 73a6a83363006bfdcbf01fa669584e665ed3365d..e16234745ed2cdea972b5a057910568b59593b5f 100644
--- a/ash/system/logout_button/tray_logout_button.cc
+++ b/ash/system/logout_button/tray_logout_button.cc
@@ -80,17 +80,18 @@ class LogoutButton : public views::View,
0, kTrayLabelItemHorizontalPaddingBottomAlignment, 0, 0));
button_ = new views::LabelButton(this, string16());
- for (size_t state = 0; state < views::CustomButton::STATE_COUNT; ++state) {
+ for (size_t state = 0; state < views::Button::STATE_COUNT; ++state) {
button_->SetTextColor(
- static_cast<views::CustomButton::ButtonState>(state), SK_ColorWHITE);
+ static_cast<views::Button::ButtonState>(state), SK_ColorWHITE);
}
button_->SetFont(button_->GetFont().DeriveFont(1));
- views::LabelButtonBorder* border = new views::LabelButtonBorder();
- border->SetPainter(views::CustomButton::STATE_NORMAL,
+ views::LabelButtonBorder* border =
+ new views::LabelButtonBorder(views::Button::STYLE_TEXTBUTTON);
+ border->SetPainter(views::Button::STATE_NORMAL,
views::Painter::CreateImageGridPainter(kLogoutButtonNormalImages));
- border->SetPainter(views::CustomButton::STATE_HOVERED,
+ border->SetPainter(views::Button::STATE_HOVERED,
views::Painter::CreateImageGridPainter(kLogoutButtonHotImages));
- border->SetPainter(views::CustomButton::STATE_PRESSED,
+ border->SetPainter(views::Button::STATE_PRESSED,
views::Painter::CreateImageGridPainter(kLogoutButtonPushedImages));
button_->set_border(border);
AddChildView(button_);
« no previous file with comments | « no previous file | ash/system/tray/tray_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698