OLD | NEW |
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_config.h" | 5 #include "ui/views/controls/menu/menu_config.h" |
6 #include "ui/views/controls/menu/menu_delegate.h" | 6 #include "ui/views/controls/menu/menu_delegate.h" |
7 | 7 |
8 namespace views { | 8 namespace views { |
9 | 9 |
10 MenuDelegate::~MenuDelegate() {} | 10 MenuDelegate::~MenuDelegate() {} |
11 | 11 |
12 bool MenuDelegate::IsItemChecked(int id) const { | 12 bool MenuDelegate::IsItemChecked(int id) const { |
13 return false; | 13 return false; |
14 } | 14 } |
15 | 15 |
16 base::string16 MenuDelegate::GetLabel(int id) const { | 16 base::string16 MenuDelegate::GetLabel(int id) const { |
17 return base::string16(); | 17 return base::string16(); |
18 } | 18 } |
19 | 19 |
20 const gfx::FontList* MenuDelegate::GetLabelFontList(int id) const { | 20 const gfx::FontList* MenuDelegate::GetLabelFontList(int id) const { |
21 return NULL; | 21 return NULL; |
22 } | 22 } |
23 | 23 |
| 24 bool MenuDelegate::GetBoldedDisabled(int command_id) const { |
| 25 return false; |
| 26 } |
| 27 |
24 bool MenuDelegate::GetBackgroundColor(int command_id, | 28 bool MenuDelegate::GetBackgroundColor(int command_id, |
25 bool is_hovered, | 29 bool is_hovered, |
26 SkColor* override_color) const { | 30 SkColor* override_color) const { |
27 return false; | 31 return false; |
28 } | 32 } |
29 | 33 |
30 bool MenuDelegate::GetForegroundColor(int command_id, | 34 bool MenuDelegate::GetForegroundColor(int command_id, |
31 bool is_hovered, | 35 bool is_hovered, |
32 SkColor* override_color) const { | 36 SkColor* override_color) const { |
33 return false; | 37 return false; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 int* right_margin) const { | 154 int* right_margin) const { |
151 *left_margin = 0; | 155 *left_margin = 0; |
152 *right_margin = 0; | 156 *right_margin = 0; |
153 } | 157 } |
154 | 158 |
155 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { | 159 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { |
156 return true; | 160 return true; |
157 } | 161 } |
158 | 162 |
159 } // namespace views | 163 } // namespace views |
OLD | NEW |