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

Unified Diff: ui/views/controls/menu/menu_item_view_win.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_linux.cc ('k') | ui/views/controls/native_control.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_win.cc
diff --git a/ui/views/controls/menu/menu_item_view_win.cc b/ui/views/controls/menu/menu_item_view_win.cc
index b50a295c7718c889f4fe6c4c596ceb6323202120..19fc97f1347f71983b91bd12870ece0bf21a5060 100644
--- a/ui/views/controls/menu/menu_item_view_win.cc
+++ b/ui/views/controls/menu/menu_item_view_win.cc
@@ -27,7 +27,7 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
int state;
NativeTheme::State control_state;
- if (IsEnabled()) {
+ if (enabled()) {
if (render_selection) {
control_state = NativeTheme::kHovered;
state = MPI_HOT;
@@ -116,7 +116,7 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
}
if (HasSubmenu()) {
- int state_id = IsEnabled() ? MSM_NORMAL : MSM_DISABLED;
+ int state_id = enabled() ? MSM_NORMAL : MSM_DISABLED;
gfx::Rect arrow_bounds(this->width() - item_right_margin_ +
config.label_to_arrow_padding, 0,
config.arrow_width, height());
« no previous file with comments | « ui/views/controls/menu/menu_item_view_linux.cc ('k') | ui/views/controls/native_control.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698