| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 bool IsCancelAllTimerRunningForTest(); | 177 bool IsCancelAllTimerRunningForTest(); |
| 178 | 178 |
| 179 // Only used for testing. | 179 // Only used for testing. |
| 180 static void TurnOffMenuSelectionHoldForTest(); | 180 static void TurnOffMenuSelectionHoldForTest(); |
| 181 | 181 |
| 182 private: | 182 private: |
| 183 friend class internal::MenuEventDispatcher; | 183 friend class internal::MenuEventDispatcher; |
| 184 friend class internal::MenuMessagePumpDispatcher; | 184 friend class internal::MenuMessagePumpDispatcher; |
| 185 friend class internal::MenuRunnerImpl; | 185 friend class internal::MenuRunnerImpl; |
| 186 friend class MenuControllerTest; | 186 friend class MenuControllerTest; |
| 187 friend class MenuEventFilter; |
| 187 friend class MenuHostRootView; | 188 friend class MenuHostRootView; |
| 188 friend class MenuItemView; | 189 friend class MenuItemView; |
| 189 friend class SubmenuView; | 190 friend class SubmenuView; |
| 190 | 191 |
| 191 class MenuScrollTask; | 192 class MenuScrollTask; |
| 192 | 193 |
| 193 struct SelectByCharDetails; | 194 struct SelectByCharDetails; |
| 194 | 195 |
| 195 // Values supplied to SetSelection. | 196 // Values supplied to SetSelection. |
| 196 enum SetSelectionTypes { | 197 enum SetSelectionTypes { |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 bool item_selected_by_touch_; | 641 bool item_selected_by_touch_; |
| 641 | 642 |
| 642 scoped_ptr<MenuMessageLoop> message_loop_; | 643 scoped_ptr<MenuMessageLoop> message_loop_; |
| 643 | 644 |
| 644 DISALLOW_COPY_AND_ASSIGN(MenuController); | 645 DISALLOW_COPY_AND_ASSIGN(MenuController); |
| 645 }; | 646 }; |
| 646 | 647 |
| 647 } // namespace views | 648 } // namespace views |
| 648 | 649 |
| 649 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 650 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| OLD | NEW |