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