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

Side by Side Diff: ui/views/controls/menu/menu_delegate.cc

Issue 2382443007: Clean up NativeTheme (particularly CommonTheme). (Closed)
Patch Set: share color constant Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « ui/views/controls/menu/menu_delegate.h ('k') | ui/views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/controls/menu/menu_delegate.h" 5 #include "ui/views/controls/menu/menu_delegate.h"
6 6
7 #include "ui/events/event.h" 7 #include "ui/events/event.h"
8 #include "ui/views/controls/menu/menu_config.h" 8 #include "ui/views/controls/menu/menu_config.h"
9 9
10 namespace views { 10 namespace views {
11 11
12 MenuDelegate::~MenuDelegate() {} 12 MenuDelegate::~MenuDelegate() {}
13 13
14 bool MenuDelegate::IsItemChecked(int id) const { 14 bool MenuDelegate::IsItemChecked(int id) const {
15 return false; 15 return false;
16 } 16 }
17 17
18 base::string16 MenuDelegate::GetLabel(int id) const { 18 base::string16 MenuDelegate::GetLabel(int id) const {
19 return base::string16(); 19 return base::string16();
20 } 20 }
21 21
22 const gfx::FontList* MenuDelegate::GetLabelFontList(int id) const { 22 const gfx::FontList* MenuDelegate::GetLabelFontList(int id) const {
23 return NULL; 23 return NULL;
24 } 24 }
25 25
26 bool MenuDelegate::GetShouldUseDisabledEmphasizedForegroundColor( 26 bool MenuDelegate::GetShouldUseNormalForegroundColor(int command_id) const {
27 int command_id) const {
28 return false; 27 return false;
29 } 28 }
30 29
31 bool MenuDelegate::GetBackgroundColor(int command_id, 30 bool MenuDelegate::GetBackgroundColor(int command_id,
32 bool is_hovered, 31 bool is_hovered,
33 SkColor* override_color) const { 32 SkColor* override_color) const {
34 return false; 33 return false;
35 } 34 }
36 35
37 bool MenuDelegate::GetForegroundColor(int command_id, 36 bool MenuDelegate::GetForegroundColor(int command_id,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 int* right_margin) const { 164 int* right_margin) const {
166 *left_margin = 0; 165 *left_margin = 0;
167 *right_margin = 0; 166 *right_margin = 0;
168 } 167 }
169 168
170 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { 169 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const {
171 return true; 170 return true;
172 } 171 }
173 172
174 } // namespace views 173 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_delegate.h ('k') | ui/views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698