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 <stddef.h> | 10 #include <stddef.h> |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 void ExitAsyncRun(); | 558 void ExitAsyncRun(); |
559 | 559 |
560 // Performs the teardown of the menu launched by Run(). The selected item is | 560 // Performs the teardown of the menu launched by Run(). The selected item is |
561 // returned. | 561 // returned. |
562 MenuItemView* ExitMenuRun(); | 562 MenuItemView* ExitMenuRun(); |
563 | 563 |
564 // Handles the mouse location event on the submenu |source|. | 564 // Handles the mouse location event on the submenu |source|. |
565 void HandleMouseLocation(SubmenuView* source, | 565 void HandleMouseLocation(SubmenuView* source, |
566 const gfx::Point& mouse_location); | 566 const gfx::Point& mouse_location); |
567 | 567 |
568 // Retrieve an appropriate Screen. | |
569 gfx::Screen* GetScreen(); | |
570 | |
571 // The active instance. | 568 // The active instance. |
572 static MenuController* active_instance_; | 569 static MenuController* active_instance_; |
573 | 570 |
574 // If true, Run blocks. If false, Run doesn't block and this is used for | 571 // If true, Run blocks. If false, Run doesn't block and this is used for |
575 // drag and drop. Note that the semantics for drag and drop are slightly | 572 // drag and drop. Note that the semantics for drag and drop are slightly |
576 // different: cancel timer is kicked off any time the drag moves outside the | 573 // different: cancel timer is kicked off any time the drag moves outside the |
577 // menu, mouse events do nothing... | 574 // menu, mouse events do nothing... |
578 bool blocking_run_; | 575 bool blocking_run_; |
579 | 576 |
580 // If true, we're showing. | 577 // If true, we're showing. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 int current_mouse_pressed_state_; | 700 int current_mouse_pressed_state_; |
704 | 701 |
705 scoped_ptr<MenuMessageLoop> message_loop_; | 702 scoped_ptr<MenuMessageLoop> message_loop_; |
706 | 703 |
707 DISALLOW_COPY_AND_ASSIGN(MenuController); | 704 DISALLOW_COPY_AND_ASSIGN(MenuController); |
708 }; | 705 }; |
709 | 706 |
710 } // namespace views | 707 } // namespace views |
711 | 708 |
712 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ | 709 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ |
OLD | NEW |