| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 241 // Dismisses the app list. | 241 // Dismisses the app list. |
| 242 void DismissAppList(); | 242 void DismissAppList(); |
| 243 | 243 |
| 244 // Shows the app list if it's not visible. Dismisses it otherwise. | 244 // Shows the app list if it's not visible. Dismisses it otherwise. |
| 245 void ToggleAppList(aura::Window* anchor); | 245 void ToggleAppList(aura::Window* anchor); |
| 246 | 246 |
| 247 // Returns app list target visibility. | 247 // Returns app list target visibility. |
| 248 bool GetAppListTargetVisibility() const; | 248 bool GetAppListTargetVisibility() const; |
| 249 | 249 |
| 250 // Returns app list window or NULL if it is not visible. | |
| 251 aura::Window* GetAppListWindow(); | |
| 252 | |
| 253 // Returns app list view if one exists, or NULL otherwise. | |
| 254 app_list::AppListView* GetAppListView(); | |
| 255 | |
| 256 // Returns true if a system-modal dialog window is currently open. | 250 // Returns true if a system-modal dialog window is currently open. |
| 257 bool IsSystemModalWindowOpen() const; | 251 bool IsSystemModalWindowOpen() const; |
| 258 | 252 |
| 259 // For testing only: set simulation that a modal window is open | 253 // For testing only: set simulation that a modal window is open |
| 260 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 254 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
| 261 simulate_modal_window_open_for_testing_ = modal_window_open; | 255 simulate_modal_window_open_for_testing_ = modal_window_open; |
| 262 } | 256 } |
| 263 | 257 |
| 264 // Creates a default views::NonClientFrameView for use by windows in the | 258 // Creates a default views::NonClientFrameView for use by windows in the |
| 265 // Ash environment. | 259 // Ash environment. |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 scoped_ptr<AccessibilityDelegate> accessibility_delegate_; | 648 scoped_ptr<AccessibilityDelegate> accessibility_delegate_; |
| 655 scoped_ptr<NewWindowDelegate> new_window_delegate_; | 649 scoped_ptr<NewWindowDelegate> new_window_delegate_; |
| 656 scoped_ptr<MediaDelegate> media_delegate_; | 650 scoped_ptr<MediaDelegate> media_delegate_; |
| 657 scoped_ptr<ShelfDelegate> shelf_delegate_; | 651 scoped_ptr<ShelfDelegate> shelf_delegate_; |
| 658 scoped_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_; | 652 scoped_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_; |
| 659 scoped_ptr<ShelfWindowWatcher> shelf_window_watcher_; | 653 scoped_ptr<ShelfWindowWatcher> shelf_window_watcher_; |
| 660 | 654 |
| 661 scoped_ptr<ShelfModel> shelf_model_; | 655 scoped_ptr<ShelfModel> shelf_model_; |
| 662 scoped_ptr<WindowPositioner> window_positioner_; | 656 scoped_ptr<WindowPositioner> window_positioner_; |
| 663 | 657 |
| 664 scoped_ptr<AppListController> app_list_controller_; | |
| 665 | |
| 666 scoped_ptr<DragDropController> drag_drop_controller_; | 658 scoped_ptr<DragDropController> drag_drop_controller_; |
| 667 scoped_ptr<ResizeShadowController> resize_shadow_controller_; | 659 scoped_ptr<ResizeShadowController> resize_shadow_controller_; |
| 668 scoped_ptr< ::wm::ShadowController> shadow_controller_; | 660 scoped_ptr< ::wm::ShadowController> shadow_controller_; |
| 669 scoped_ptr< ::wm::VisibilityController> visibility_controller_; | 661 scoped_ptr< ::wm::VisibilityController> visibility_controller_; |
| 670 scoped_ptr< ::wm::WindowModalityController> window_modality_controller_; | 662 scoped_ptr< ::wm::WindowModalityController> window_modality_controller_; |
| 671 scoped_ptr<views::corewm::TooltipController> tooltip_controller_; | 663 scoped_ptr<views::corewm::TooltipController> tooltip_controller_; |
| 672 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; | 664 scoped_ptr<DesktopBackgroundController> desktop_background_controller_; |
| 673 scoped_ptr<PowerButtonController> power_button_controller_; | 665 scoped_ptr<PowerButtonController> power_button_controller_; |
| 674 scoped_ptr<LockStateController> lock_state_controller_; | 666 scoped_ptr<LockStateController> lock_state_controller_; |
| 675 scoped_ptr<MruWindowTracker> mru_window_tracker_; | 667 scoped_ptr<MruWindowTracker> mru_window_tracker_; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 bool in_mus_ = false; | 762 bool in_mus_ = false; |
| 771 | 763 |
| 772 scoped_ptr<KeyboardUI> keyboard_ui_; | 764 scoped_ptr<KeyboardUI> keyboard_ui_; |
| 773 | 765 |
| 774 DISALLOW_COPY_AND_ASSIGN(Shell); | 766 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 775 }; | 767 }; |
| 776 | 768 |
| 777 } // namespace ash | 769 } // namespace ash |
| 778 | 770 |
| 779 #endif // ASH_SHELL_H_ | 771 #endif // ASH_SHELL_H_ |
| OLD | NEW |