| 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_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 Loading... |
| 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 |
| OLD | NEW |