| 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() {} |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 return string16(); | 38 return string16(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) { | 41 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) { |
| 42 return false; | 42 return false; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool MenuDelegate::ShowContextMenu(MenuItemView* source, | 45 bool MenuDelegate::ShowContextMenu(MenuItemView* source, |
| 46 int id, | 46 int id, |
| 47 const gfx::Point& p, | 47 const gfx::Point& p, |
| 48 bool is_mouse_gesture) { | 48 ui::MenuSourceType source_type) { |
| 49 return false; | 49 return false; |
| 50 } | 50 } |
| 51 | 51 |
| 52 bool MenuDelegate::SupportsCommand(int id) const { | 52 bool MenuDelegate::SupportsCommand(int id) const { |
| 53 return true; | 53 return true; |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool MenuDelegate::IsCommandEnabled(int id) const { | 56 bool MenuDelegate::IsCommandEnabled(int id) const { |
| 57 return true; | 57 return true; |
| 58 } | 58 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 int* right_margin) const { | 150 int* right_margin) const { |
| 151 *left_margin = 0; | 151 *left_margin = 0; |
| 152 *right_margin = 0; | 152 *right_margin = 0; |
| 153 } | 153 } |
| 154 | 154 |
| 155 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { | 155 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { |
| 156 return true; | 156 return true; |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace views | 159 } // namespace views |
| OLD | NEW |