| 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 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool is_hovered, | 38 bool is_hovered, |
| 39 SkColor* override_color) const { | 39 SkColor* override_color) const { |
| 40 return false; | 40 return false; |
| 41 } | 41 } |
| 42 | 42 |
| 43 base::string16 MenuDelegate::GetTooltipText(int id, | 43 base::string16 MenuDelegate::GetTooltipText(int id, |
| 44 const gfx::Point& screen_loc) const { | 44 const gfx::Point& screen_loc) const { |
| 45 return base::string16(); | 45 return base::string16(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) { | 48 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) const { |
| 49 return false; | 49 return false; |
| 50 } | 50 } |
| 51 | 51 |
| 52 bool MenuDelegate::ShowContextMenu(MenuItemView* source, | 52 bool MenuDelegate::ShowContextMenu(MenuItemView* source, |
| 53 int id, | 53 int id, |
| 54 const gfx::Point& p, | 54 const gfx::Point& p, |
| 55 ui::MenuSourceType source_type) { | 55 ui::MenuSourceType source_type) { |
| 56 return false; | 56 return false; |
| 57 } | 57 } |
| 58 | 58 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 int* right_margin) const { | 157 int* right_margin) const { |
| 158 *left_margin = 0; | 158 *left_margin = 0; |
| 159 *right_margin = 0; | 159 *right_margin = 0; |
| 160 } | 160 } |
| 161 | 161 |
| 162 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { | 162 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { |
| 163 return true; | 163 return true; |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace views | 166 } // namespace views |
| OLD | NEW |