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

Unified Diff: chrome/browser/chromeos/status/status_area_button.cc

Issue 6635008: cros: Fix PaintButton override. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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/status/status_area_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/status/status_area_button.cc
diff --git a/chrome/browser/chromeos/status/status_area_button.cc b/chrome/browser/chromeos/status/status_area_button.cc
index 21b18ddf88e5b3e5dff253920e7de25d9b5d2cd1..3abf6dd864a52267233ac0ef338a69c145605a5b 100644
--- a/chrome/browser/chromeos/status/status_area_button.cc
+++ b/chrome/browser/chromeos/status/status_area_button.cc
@@ -30,7 +30,7 @@ StatusAreaButton::StatusAreaButton(views::ViewMenuDelegate* menu_delegate)
SetTextHaloColor(kStatusTextHaloColor);
}
-void StatusAreaButton::OnPaint(gfx::Canvas* canvas, bool for_drag) {
+void StatusAreaButton::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
if (state() == BS_PUSHED) {
// Apply 10% white when pushed down.
canvas->FillRectInt(SkColorSetARGB(0x19, 0xFF, 0xFF, 0xFF),
@@ -38,11 +38,7 @@ void StatusAreaButton::OnPaint(gfx::Canvas* canvas, bool for_drag) {
}
if (use_menu_button_paint_) {
- views::MenuButton::PaintButton(
- canvas,
- for_drag ?
- views::MenuButton::PB_FOR_DRAG :
- views::MenuButton::PB_NORMAL);
+ views::MenuButton::PaintButton(canvas, mode);
} else {
canvas->DrawBitmapInt(icon(), horizontal_padding(), 0);
OnPaintFocusBorder(canvas);
« no previous file with comments | « chrome/browser/chromeos/status/status_area_button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698