| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/controls/menu/menu_config.h" |
| 5 #include "views/controls/menu/menu_delegate.h" | 6 #include "views/controls/menu/menu_delegate.h" |
| 6 | 7 |
| 7 namespace views { | 8 namespace views { |
| 8 | 9 |
| 9 bool MenuDelegate::IsItemChecked(int id) const { | 10 bool MenuDelegate::IsItemChecked(int id) const { |
| 10 return false; | 11 return false; |
| 11 } | 12 } |
| 12 | 13 |
| 13 std::wstring MenuDelegate::GetLabel(int id) const { | 14 std::wstring MenuDelegate::GetLabel(int id) const { |
| 14 return std::wstring(); | 15 return std::wstring(); |
| 15 } | 16 } |
| 16 | 17 |
| 18 const gfx::Font& MenuDelegate::GetLabelFont(int id) const { |
| 19 return MenuConfig::instance().font; |
| 20 } |
| 21 |
| 17 std::wstring MenuDelegate::GetTooltipText(int id, | 22 std::wstring MenuDelegate::GetTooltipText(int id, |
| 18 const gfx::Point& screen_loc) { | 23 const gfx::Point& screen_loc) { |
| 19 return std::wstring(); | 24 return std::wstring(); |
| 20 } | 25 } |
| 21 | 26 |
| 22 bool MenuDelegate::GetAccelerator(int id, Accelerator* accelerator) { | 27 bool MenuDelegate::GetAccelerator(int id, Accelerator* accelerator) { |
| 23 return false; | 28 return false; |
| 24 } | 29 } |
| 25 | 30 |
| 26 bool MenuDelegate::ShowContextMenu(MenuItemView* source, | 31 bool MenuDelegate::ShowContextMenu(MenuItemView* source, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 return NULL; | 109 return NULL; |
| 105 } | 110 } |
| 106 | 111 |
| 107 int MenuDelegate::GetMaxWidthForMenu() { | 112 int MenuDelegate::GetMaxWidthForMenu() { |
| 108 // NOTE: this needs to be large enough to accommodate the wrench menu with | 113 // NOTE: this needs to be large enough to accommodate the wrench menu with |
| 109 // big fonts. | 114 // big fonts. |
| 110 return 800; | 115 return 800; |
| 111 } | 116 } |
| 112 | 117 |
| 113 } // namespace views | 118 } // namespace views |
| OLD | NEW |