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 <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...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 | |
257 // Returns true if a system-modal dialog window is currently open. | 251 // Returns true if a system-modal dialog window is currently open. |
258 bool IsSystemModalWindowOpen() const; | 252 bool IsSystemModalWindowOpen() const; |
259 | 253 |
260 // For testing only: set simulation that a modal window is open | 254 // For testing only: set simulation that a modal window is open |
261 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 255 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
262 simulate_modal_window_open_for_testing_ = modal_window_open; | 256 simulate_modal_window_open_for_testing_ = modal_window_open; |
263 } | 257 } |
264 | 258 |
265 // Creates a default views::NonClientFrameView for use by windows in the | 259 // Creates a default views::NonClientFrameView for use by windows in the |
266 // Ash environment. | 260 // Ash environment. |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 scoped_ptr<AccessibilityDelegate> accessibility_delegate_; | 656 scoped_ptr<AccessibilityDelegate> accessibility_delegate_; |
663 scoped_ptr<NewWindowDelegate> new_window_delegate_; | 657 scoped_ptr<NewWindowDelegate> new_window_delegate_; |
664 scoped_ptr<MediaDelegate> media_delegate_; | 658 scoped_ptr<MediaDelegate> media_delegate_; |
665 scoped_ptr<ShelfDelegate> shelf_delegate_; | 659 scoped_ptr<ShelfDelegate> shelf_delegate_; |
666 scoped_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_; | 660 scoped_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_; |
667 scoped_ptr<ShelfWindowWatcher> shelf_window_watcher_; | 661 scoped_ptr<ShelfWindowWatcher> shelf_window_watcher_; |
668 | 662 |
669 scoped_ptr<ShelfModel> shelf_model_; | 663 scoped_ptr<ShelfModel> shelf_model_; |
670 scoped_ptr<WindowPositioner> window_positioner_; | 664 scoped_ptr<WindowPositioner> window_positioner_; |
671 | 665 |
672 scoped_ptr<AppListController> app_list_controller_; | |
673 | |
674 scoped_ptr<DragDropController> drag_drop_controller_; | 666 scoped_ptr<DragDropController> drag_drop_controller_; |
675 scoped_ptr<ResizeShadowController> resize_shadow_controller_; | 667 scoped_ptr<ResizeShadowController> resize_shadow_controller_; |
676 scoped_ptr< ::wm::ShadowController> shadow_controller_; | 668 scoped_ptr< ::wm::ShadowController> shadow_controller_; |
677 scoped_ptr< ::wm::VisibilityController> visibility_controller_; | 669 scoped_ptr< ::wm::VisibilityController> visibility_controller_; |
678 scoped_ptr< ::wm::WindowModalityController> window_modality_controller_; | 670 scoped_ptr< ::wm::WindowModalityController> window_modality_controller_; |
679 scoped_ptr<views::corewm::TooltipController> tooltip_controller_; | 671 scoped_ptr<views::corewm::TooltipController> tooltip_controller_; |
680 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; | 672 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; |
681 scoped_ptr<PowerButtonController> power_button_controller_; | 673 scoped_ptr<PowerButtonController> power_button_controller_; |
682 scoped_ptr<LockStateController> lock_state_controller_; | 674 scoped_ptr<LockStateController> lock_state_controller_; |
683 scoped_ptr<MruWindowTracker> mru_window_tracker_; | 675 scoped_ptr<MruWindowTracker> mru_window_tracker_; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 bool in_mus_ = false; | 771 bool in_mus_ = false; |
780 | 772 |
781 scoped_ptr<KeyboardUI> keyboard_ui_; | 773 scoped_ptr<KeyboardUI> keyboard_ui_; |
782 | 774 |
783 DISALLOW_COPY_AND_ASSIGN(Shell); | 775 DISALLOW_COPY_AND_ASSIGN(Shell); |
784 }; | 776 }; |
785 | 777 |
786 } // namespace ash | 778 } // namespace ash |
787 | 779 |
788 #endif // ASH_SHELL_H_ | 780 #endif // ASH_SHELL_H_ |
OLD | NEW |