| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| 6 #define VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 class MenuHostRootView; | 30 class MenuHostRootView; |
| 31 class MouseEvent; | 31 class MouseEvent; |
| 32 class SubmenuView; | 32 class SubmenuView; |
| 33 class View; | 33 class View; |
| 34 | 34 |
| 35 // MenuController ------------------------------------------------------------- | 35 // MenuController ------------------------------------------------------------- |
| 36 | 36 |
| 37 // MenuController is used internally by the various menu classes to manage | 37 // MenuController is used internally by the various menu classes to manage |
| 38 // showing, selecting and drag/drop for menus. All relevant events are | 38 // showing, selecting and drag/drop for menus. All relevant events are |
| 39 // forwarded to the MenuController from SubmenuView and MenuHost. | 39 // forwarded to the MenuController from SubmenuView and MenuHost. |
| 40 class VIEWS_API MenuController : public MessageLoop::Dispatcher { | 40 class VIEWS_EXPORT MenuController : public MessageLoop::Dispatcher { |
| 41 public: | 41 public: |
| 42 friend class MenuHostRootView; | 42 friend class MenuHostRootView; |
| 43 friend class MenuItemView; | 43 friend class MenuItemView; |
| 44 | 44 |
| 45 // Enumeration of how the menu should exit. | 45 // Enumeration of how the menu should exit. |
| 46 enum ExitType { | 46 enum ExitType { |
| 47 // Don't exit. | 47 // Don't exit. |
| 48 EXIT_NONE, | 48 EXIT_NONE, |
| 49 | 49 |
| 50 // All menus, including nested, should be exited. | 50 // All menus, including nested, should be exited. |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 // If non-null mouse drag events are forwarded to this view. See | 492 // If non-null mouse drag events are forwarded to this view. See |
| 493 // UpdateActiveMouseView for details. | 493 // UpdateActiveMouseView for details. |
| 494 View* active_mouse_view_; | 494 View* active_mouse_view_; |
| 495 | 495 |
| 496 DISALLOW_COPY_AND_ASSIGN(MenuController); | 496 DISALLOW_COPY_AND_ASSIGN(MenuController); |
| 497 }; | 497 }; |
| 498 | 498 |
| 499 } // namespace views | 499 } // namespace views |
| 500 | 500 |
| 501 #endif // VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 501 #endif // VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
| OLD | NEW |