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 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 bool IsCancelAllTimerRunningForTest(); | 181 bool IsCancelAllTimerRunningForTest(); |
182 | 182 |
183 // Only used for testing. | 183 // Only used for testing. |
184 static void TurnOffMenuSelectionHoldForTest(); | 184 static void TurnOffMenuSelectionHoldForTest(); |
185 | 185 |
186 private: | 186 private: |
187 friend class internal::MenuEventDispatcher; | 187 friend class internal::MenuEventDispatcher; |
188 friend class internal::MenuMessagePumpDispatcher; | 188 friend class internal::MenuMessagePumpDispatcher; |
189 friend class internal::MenuRunnerImpl; | 189 friend class internal::MenuRunnerImpl; |
190 friend class test::MenuControllerTest; | 190 friend class test::MenuControllerTest; |
| 191 friend class MenuKeyEventHandler; |
191 friend class MenuHostRootView; | 192 friend class MenuHostRootView; |
192 friend class MenuItemView; | 193 friend class MenuItemView; |
193 friend class SubmenuView; | 194 friend class SubmenuView; |
194 | 195 |
195 class MenuScrollTask; | 196 class MenuScrollTask; |
196 | 197 |
197 struct SelectByCharDetails; | 198 struct SelectByCharDetails; |
198 | 199 |
199 // Values supplied to SetSelection. | 200 // Values supplied to SetSelection. |
200 enum SetSelectionTypes { | 201 enum SetSelectionTypes { |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 bool item_selected_by_touch_; | 643 bool item_selected_by_touch_; |
643 | 644 |
644 scoped_ptr<MenuMessageLoop> message_loop_; | 645 scoped_ptr<MenuMessageLoop> message_loop_; |
645 | 646 |
646 DISALLOW_COPY_AND_ASSIGN(MenuController); | 647 DISALLOW_COPY_AND_ASSIGN(MenuController); |
647 }; | 648 }; |
648 | 649 |
649 } // namespace views | 650 } // namespace views |
650 | 651 |
651 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 652 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
OLD | NEW |