| 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_config.h" |
| 6 #include "views/controls/menu/menu_delegate.h" | 6 #include "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 string16 MenuDelegate::GetLabel(int id) const { | 16 string16 MenuDelegate::GetLabel(int id) const { |
| 17 return string16(); | 17 return string16(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 const gfx::Font& MenuDelegate::GetLabelFont(int id) const { | 20 const gfx::Font& MenuDelegate::GetLabelFont(int id) const { |
| 21 return MenuConfig::instance().font; | 21 return MenuConfig::instance().font; |
| 22 } | 22 } |
| 23 | 23 |
| 24 string16 MenuDelegate::GetTooltipText(int id, | 24 string16 MenuDelegate::GetTooltipText(int id, |
| 25 const gfx::Point& screen_loc) const { | 25 const gfx::Point& screen_loc) const { |
| 26 return string16(); | 26 return string16(); |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool MenuDelegate::GetAccelerator(int id, Accelerator* accelerator) { | 29 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) { |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 bool MenuDelegate::ShowContextMenu(MenuItemView* source, | 33 bool MenuDelegate::ShowContextMenu(MenuItemView* source, |
| 34 int id, | 34 int id, |
| 35 const gfx::Point& p, | 35 const gfx::Point& p, |
| 36 bool is_mouse_gesture) { | 36 bool is_mouse_gesture) { |
| 37 return false; | 37 return false; |
| 38 } | 38 } |
| 39 | 39 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 return 800; | 118 return 800; |
| 119 } | 119 } |
| 120 | 120 |
| 121 void MenuDelegate::WillShowMenu(MenuItemView* menu) { | 121 void MenuDelegate::WillShowMenu(MenuItemView* menu) { |
| 122 } | 122 } |
| 123 | 123 |
| 124 void MenuDelegate::WillHideMenu(MenuItemView* menu) { | 124 void MenuDelegate::WillHideMenu(MenuItemView* menu) { |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace views | 127 } // namespace views |
| OLD | NEW |