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

Unified Diff: ui/views/controls/menu/menu_delegate.h

Issue 205153003: linux_aura: Don't inject black in WrenchMenu::GetForegroundColor(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky rename request Created 6 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 | « ui/native_theme/native_theme_win.cc ('k') | ui/views/controls/menu/menu_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_delegate.h
diff --git a/ui/views/controls/menu/menu_delegate.h b/ui/views/controls/menu/menu_delegate.h
index e50ec8e5ce0d6c28865cf6954288470d9c4215f2..37c2db8038024aed48c04619414797356f37ffe4 100644
--- a/ui/views/controls/menu/menu_delegate.h
+++ b/ui/views/controls/menu/menu_delegate.h
@@ -66,9 +66,16 @@ class VIEWS_EXPORT MenuDelegate {
// The font for the menu item label.
virtual const gfx::FontList* GetLabelFontList(int id) const;
+ // Whether this item should be displayed with a bolder color when disabled.
+ virtual bool GetShouldUseDisabledEmphasizedForegroundColor(
+ int command_id) const;
+
// Override the text color of a given menu item dependent on the
// |command_id| and its |is_hovered| state. Returns true if it chooses to
// override the color.
+ //
+ // TODO(erg): Remove this interface. Injecting raw colors into the menu
+ // circumvents the NativeTheme.
virtual bool GetForegroundColor(int command_id,
bool is_hovered,
SkColor* override_color) const;
@@ -76,6 +83,9 @@ class VIEWS_EXPORT MenuDelegate {
// Override the background color of a given menu item dependent on the
// |command_id| and its |is_hovered| state. Returns true if it chooses to
// override the color.
+ //
+ // TODO(erg): Remove this interface. Injecting raw colors into the menu
+ // circumvents the NativeTheme.
virtual bool GetBackgroundColor(int command_id,
bool is_hovered,
SkColor* override_color) const;
« no previous file with comments | « ui/native_theme/native_theme_win.cc ('k') | ui/views/controls/menu/menu_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698