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 19 matching lines...) Expand all Loading... |
30 namespace ui { | 30 namespace ui { |
31 class NativeTheme; | 31 class NativeTheme; |
32 class OSExchangeData; | 32 class OSExchangeData; |
33 class ScopedEventDispatcher; | 33 class ScopedEventDispatcher; |
34 } | 34 } |
35 namespace views { | 35 namespace views { |
36 | 36 |
37 class MenuButton; | 37 class MenuButton; |
38 class MenuHostRootView; | 38 class MenuHostRootView; |
39 class MenuItemView; | 39 class MenuItemView; |
| 40 class MenuMessageLoop; |
40 class MouseEvent; | 41 class MouseEvent; |
41 class SubmenuView; | 42 class SubmenuView; |
42 class View; | 43 class View; |
43 | 44 |
44 namespace internal { | 45 namespace internal { |
45 class MenuControllerDelegate; | 46 class MenuControllerDelegate; |
46 class MenuEventDispatcher; | 47 class MenuEventDispatcher; |
47 class MenuMessagePumpDispatcher; | 48 class MenuMessagePumpDispatcher; |
48 class MenuRunnerImpl; | 49 class MenuRunnerImpl; |
49 } | 50 } |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 // screen coordinates). Otherwise this will be (0, 0). | 592 // screen coordinates). Otherwise this will be (0, 0). |
592 gfx::Point menu_start_mouse_press_loc_; | 593 gfx::Point menu_start_mouse_press_loc_; |
593 | 594 |
594 // Controls behavior differences between a combobox and other types of menu | 595 // Controls behavior differences between a combobox and other types of menu |
595 // (like a context menu). | 596 // (like a context menu). |
596 bool is_combobox_; | 597 bool is_combobox_; |
597 | 598 |
598 // Set to true if the menu item was selected by touch. | 599 // Set to true if the menu item was selected by touch. |
599 bool item_selected_by_touch_; | 600 bool item_selected_by_touch_; |
600 | 601 |
601 scoped_ptr<ui::ScopedEventDispatcher> nested_dispatcher_; | 602 scoped_ptr<MenuMessageLoop> message_loop_; |
602 | 603 |
603 DISALLOW_COPY_AND_ASSIGN(MenuController); | 604 DISALLOW_COPY_AND_ASSIGN(MenuController); |
604 }; | 605 }; |
605 | 606 |
606 } // namespace views | 607 } // namespace views |
607 | 608 |
608 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 609 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
OLD | NEW |