| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool MenuDelegate::SupportsCommand(int id) const { | 59 bool MenuDelegate::SupportsCommand(int id) const { |
| 60 return true; | 60 return true; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool MenuDelegate::IsCommandEnabled(int id) const { | 63 bool MenuDelegate::IsCommandEnabled(int id) const { |
| 64 return true; | 64 return true; |
| 65 } | 65 } |
| 66 | 66 |
| 67 bool MenuDelegate::IsCommandVisible(int id) const { |
| 68 return true; |
| 69 } |
| 70 |
| 67 bool MenuDelegate::GetContextualLabel(int id, base::string16* out) const { | 71 bool MenuDelegate::GetContextualLabel(int id, base::string16* out) const { |
| 68 return false; | 72 return false; |
| 69 } | 73 } |
| 70 | 74 |
| 71 bool MenuDelegate::ShouldCloseAllMenusOnExecute(int id) { | 75 bool MenuDelegate::ShouldCloseAllMenusOnExecute(int id) { |
| 72 return true; | 76 return true; |
| 73 } | 77 } |
| 74 | 78 |
| 75 void MenuDelegate::ExecuteCommand(int id, int mouse_event_flags) { | 79 void MenuDelegate::ExecuteCommand(int id, int mouse_event_flags) { |
| 76 ExecuteCommand(id); | 80 ExecuteCommand(id); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 int* right_margin) const { | 165 int* right_margin) const { |
| 162 *left_margin = 0; | 166 *left_margin = 0; |
| 163 *right_margin = 0; | 167 *right_margin = 0; |
| 164 } | 168 } |
| 165 | 169 |
| 166 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { | 170 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { |
| 167 return true; | 171 return true; |
| 168 } | 172 } |
| 169 | 173 |
| 170 } // namespace views | 174 } // namespace views |
| OLD | NEW |