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

Unified Diff: ui/views/controls/menu/menu_item_view_linux.cc

Issue 8909002: views: Convert IsEnabled() to just enabled() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « ui/views/controls/menu/menu_item_view_aura.cc ('k') | ui/views/controls/menu/menu_item_view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_item_view_linux.cc
diff --git a/ui/views/controls/menu/menu_item_view_linux.cc b/ui/views/controls/menu/menu_item_view_linux.cc
index a9e738dc37877ae7f5c126c9f5510e6a9ac9aea4..1b77e2739512ac83fec8717f1e4097baf8802525 100644
--- a/ui/views/controls/menu/menu_item_view_linux.cc
+++ b/ui/views/controls/menu/menu_item_view_linux.cc
@@ -69,11 +69,11 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
// Render the foreground.
#if defined(OS_CHROMEOS)
- SkColor fg_color =
- IsEnabled() ? SK_ColorBLACK : SkColorSetRGB(0x80, 0x80, 0x80);
+ SkColor fg_color = enabled() ? SK_ColorBLACK
+ : SkColorSetRGB(0x80, 0x80, 0x80);
#else
- SkColor fg_color =
- IsEnabled() ? TextButton::kEnabledColor : TextButton::kDisabledColor;
+ SkColor fg_color = enabled() ? TextButton::kEnabledColor
+ : TextButton::kDisabledColor;
#endif
const gfx::Font& font = GetFont();
int accel_width = parent_menu_item_->GetSubmenu()->max_accelerator_width();
« no previous file with comments | « ui/views/controls/menu/menu_item_view_aura.cc ('k') | ui/views/controls/menu/menu_item_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698