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