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 ASH_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 // Dismisses the app list. | 242 // Dismisses the app list. |
243 void DismissAppList(); | 243 void DismissAppList(); |
244 | 244 |
245 // Shows the app list if it's not visible. Dismisses it otherwise. | 245 // Shows the app list if it's not visible. Dismisses it otherwise. |
246 void ToggleAppList(aura::Window* anchor); | 246 void ToggleAppList(aura::Window* anchor); |
247 | 247 |
248 // Returns app list target visibility. | 248 // Returns app list target visibility. |
249 bool GetAppListTargetVisibility() const; | 249 bool GetAppListTargetVisibility() const; |
250 | 250 |
| 251 // Returns app list window or NULL if it is not visible. |
| 252 aura::Window* GetAppListWindow(); |
| 253 |
| 254 // Returns app list view if one exists, or NULL otherwise. |
| 255 app_list::AppListView* GetAppListView(); |
| 256 |
251 // Returns true if a system-modal dialog window is currently open. | 257 // Returns true if a system-modal dialog window is currently open. |
252 bool IsSystemModalWindowOpen() const; | 258 bool IsSystemModalWindowOpen() const; |
253 | 259 |
254 // For testing only: set simulation that a modal window is open | 260 // For testing only: set simulation that a modal window is open |
255 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 261 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
256 simulate_modal_window_open_for_testing_ = modal_window_open; | 262 simulate_modal_window_open_for_testing_ = modal_window_open; |
257 } | 263 } |
258 | 264 |
259 // Creates a default views::NonClientFrameView for use by windows in the | 265 // Creates a default views::NonClientFrameView for use by windows in the |
260 // Ash environment. | 266 // Ash environment. |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; | 662 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; |
657 std::unique_ptr<NewWindowDelegate> new_window_delegate_; | 663 std::unique_ptr<NewWindowDelegate> new_window_delegate_; |
658 std::unique_ptr<MediaDelegate> media_delegate_; | 664 std::unique_ptr<MediaDelegate> media_delegate_; |
659 std::unique_ptr<ShelfDelegate> shelf_delegate_; | 665 std::unique_ptr<ShelfDelegate> shelf_delegate_; |
660 std::unique_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_; | 666 std::unique_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_; |
661 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; | 667 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; |
662 | 668 |
663 std::unique_ptr<ShelfModel> shelf_model_; | 669 std::unique_ptr<ShelfModel> shelf_model_; |
664 std::unique_ptr<WindowPositioner> window_positioner_; | 670 std::unique_ptr<WindowPositioner> window_positioner_; |
665 | 671 |
| 672 std::unique_ptr<AppListController> app_list_controller_; |
| 673 |
666 std::unique_ptr<DragDropController> drag_drop_controller_; | 674 std::unique_ptr<DragDropController> drag_drop_controller_; |
667 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; | 675 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; |
668 std::unique_ptr<::wm::ShadowController> shadow_controller_; | 676 std::unique_ptr<::wm::ShadowController> shadow_controller_; |
669 std::unique_ptr<::wm::VisibilityController> visibility_controller_; | 677 std::unique_ptr<::wm::VisibilityController> visibility_controller_; |
670 std::unique_ptr<::wm::WindowModalityController> window_modality_controller_; | 678 std::unique_ptr<::wm::WindowModalityController> window_modality_controller_; |
671 std::unique_ptr<views::corewm::TooltipController> tooltip_controller_; | 679 std::unique_ptr<views::corewm::TooltipController> tooltip_controller_; |
672 std::unique_ptr<DesktopBackgroundController> desktop_background_controller_; | 680 std::unique_ptr<DesktopBackgroundController> desktop_background_controller_; |
673 std::unique_ptr<PowerButtonController> power_button_controller_; | 681 std::unique_ptr<PowerButtonController> power_button_controller_; |
674 std::unique_ptr<LockStateController> lock_state_controller_; | 682 std::unique_ptr<LockStateController> lock_state_controller_; |
675 std::unique_ptr<MruWindowTracker> mru_window_tracker_; | 683 std::unique_ptr<MruWindowTracker> mru_window_tracker_; |
676 std::unique_ptr<ui::UserActivityDetector> user_activity_detector_; | 684 std::unique_ptr<ui::UserActivityDetector> user_activity_detector_; |
677 std::unique_ptr<VideoDetector> video_detector_; | 685 std::unique_ptr<VideoDetector> video_detector_; |
678 std::unique_ptr<WindowCycleController> window_cycle_controller_; | 686 std::unique_ptr<WindowCycleController> window_cycle_controller_; |
679 std::unique_ptr<WindowSelectorController> window_selector_controller_; | 687 std::unique_ptr<WindowSelectorController> window_selector_controller_; |
680 std::unique_ptr<FocusCycler> focus_cycler_; | 688 std::unique_ptr<FocusCycler> focus_cycler_; |
681 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_; | 689 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_; |
682 std::unique_ptr<HighContrastController> high_contrast_controller_; | 690 std::unique_ptr<HighContrastController> high_contrast_controller_; |
683 std::unique_ptr<MagnificationController> magnification_controller_; | 691 std::unique_ptr<MagnificationController> magnification_controller_; |
684 std::unique_ptr<PartialMagnificationController> | 692 std::unique_ptr<PartialMagnificationController> |
685 partial_magnification_controller_; | 693 partial_magnification_controller_; |
686 std::unique_ptr<AutoclickController> autoclick_controller_; | 694 std::unique_ptr<AutoclickController> autoclick_controller_; |
687 std::unique_ptr<aura::client::FocusClient> focus_client_; | 695 std::unique_ptr<aura::client::FocusClient> focus_client_; |
688 | |
689 aura::client::ActivationClient* activation_client_; | 696 aura::client::ActivationClient* activation_client_; |
690 std::unique_ptr<PartialScreenshotController> partial_screenshot_controller_; | 697 std::unique_ptr<PartialScreenshotController> partial_screenshot_controller_; |
691 | 698 |
692 std::unique_ptr<MouseCursorEventFilter> mouse_cursor_filter_; | 699 std::unique_ptr<MouseCursorEventFilter> mouse_cursor_filter_; |
693 std::unique_ptr<ScreenPositionController> screen_position_controller_; | 700 std::unique_ptr<ScreenPositionController> screen_position_controller_; |
694 std::unique_ptr<SystemModalContainerEventFilter> modality_filter_; | 701 std::unique_ptr<SystemModalContainerEventFilter> modality_filter_; |
695 std::unique_ptr<EventClientImpl> event_client_; | 702 std::unique_ptr<EventClientImpl> event_client_; |
696 std::unique_ptr<EventTransformationHandler> event_transformation_handler_; | 703 std::unique_ptr<EventTransformationHandler> event_transformation_handler_; |
697 | 704 |
698 // An event filter that pre-handles key events while the partial | 705 // An event filter that pre-handles key events while the partial |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 bool in_mus_ = false; | 781 bool in_mus_ = false; |
775 | 782 |
776 std::unique_ptr<KeyboardUI> keyboard_ui_; | 783 std::unique_ptr<KeyboardUI> keyboard_ui_; |
777 | 784 |
778 DISALLOW_COPY_AND_ASSIGN(Shell); | 785 DISALLOW_COPY_AND_ASSIGN(Shell); |
779 }; | 786 }; |
780 | 787 |
781 } // namespace ash | 788 } // namespace ash |
782 | 789 |
783 #endif // ASH_SHELL_H_ | 790 #endif // ASH_SHELL_H_ |
OLD | NEW |