| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 class OverlayEventFilter; | 104 class OverlayEventFilter; |
| 105 class PartialMagnificationController; | 105 class PartialMagnificationController; |
| 106 class PointerWatcherDelegate; | 106 class PointerWatcherDelegate; |
| 107 class PowerButtonController; | 107 class PowerButtonController; |
| 108 class PowerEventObserver; | 108 class PowerEventObserver; |
| 109 class ProjectingObserver; | 109 class ProjectingObserver; |
| 110 class ResizeShadowController; | 110 class ResizeShadowController; |
| 111 class ResolutionNotificationController; | 111 class ResolutionNotificationController; |
| 112 class RootWindowController; | 112 class RootWindowController; |
| 113 class ScopedOverviewAnimationSettingsFactoryAura; | 113 class ScopedOverviewAnimationSettingsFactoryAura; |
| 114 class ScopedTargetRootWindow; | |
| 115 class ScreenAsh; | 114 class ScreenAsh; |
| 116 class ScreenOrientationController; | 115 class ScreenOrientationController; |
| 117 class ScreenshotController; | 116 class ScreenshotController; |
| 118 class ScreenPinningController; | 117 class ScreenPinningController; |
| 119 class ScreenPositionController; | 118 class ScreenPositionController; |
| 120 class SessionStateDelegate; | 119 class SessionStateDelegate; |
| 121 class Shelf; | 120 class Shelf; |
| 122 class ShelfWindowWatcher; | 121 class ShelfWindowWatcher; |
| 123 class ShellDelegate; | 122 class ShellDelegate; |
| 124 struct ShellInitParams; | 123 struct ShellInitParams; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // Returns all root window controllers. | 178 // Returns all root window controllers. |
| 180 // TODO(oshima): move this to |RootWindowController| | 179 // TODO(oshima): move this to |RootWindowController| |
| 181 static RootWindowControllerList GetAllRootWindowControllers(); | 180 static RootWindowControllerList GetAllRootWindowControllers(); |
| 182 | 181 |
| 183 // Returns the primary root Window. The primary root Window is the one that | 182 // Returns the primary root Window. The primary root Window is the one that |
| 184 // has a launcher. | 183 // has a launcher. |
| 185 static aura::Window* GetPrimaryRootWindow(); | 184 static aura::Window* GetPrimaryRootWindow(); |
| 186 | 185 |
| 187 // Returns a root Window when used as a target when creating a new window. | 186 // Returns a root Window when used as a target when creating a new window. |
| 188 // The root window of the active window is used in most cases, but can | 187 // The root window of the active window is used in most cases, but can |
| 189 // be overridden by using ScopedTargetRootWindow(). | 188 // be overridden by using ScopedRootWindowForNewWindows. |
| 190 // If you want to get the root Window of the active window, just use | 189 // If you want to get the root Window of the active window, just use |
| 191 // |wm::GetActiveWindow()->GetRootWindow()|. | 190 // |wm::GetActiveWindow()->GetRootWindow()|. |
| 191 // TODO(jamescook): Rename to GetRootWindowForNewWindows. |
| 192 static aura::Window* GetTargetRootWindow(); | 192 static aura::Window* GetTargetRootWindow(); |
| 193 | 193 |
| 194 // Returns the id of the display::Display corresponding to the window returned | 194 // Returns the id of the display::Display corresponding to the window returned |
| 195 // by |GetTargetRootWindow()| | 195 // by |GetTargetRootWindow()| |
| 196 static int64_t GetTargetDisplayId(); | 196 static int64_t GetTargetDisplayId(); |
| 197 | 197 |
| 198 // Returns all root windows. | 198 // Returns all root windows. |
| 199 static aura::Window::Windows GetAllRootWindows(); | 199 static aura::Window::Windows GetAllRootWindows(); |
| 200 | 200 |
| 201 static aura::Window* GetContainer(aura::Window* root_window, | 201 static aura::Window* GetContainer(aura::Window* root_window, |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 return screen_pinning_controller_.get(); | 473 return screen_pinning_controller_.get(); |
| 474 } | 474 } |
| 475 | 475 |
| 476 GPUSupport* gpu_support() { return gpu_support_.get(); } | 476 GPUSupport* gpu_support() { return gpu_support_.get(); } |
| 477 | 477 |
| 478 private: | 478 private: |
| 479 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); | 479 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); |
| 480 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 480 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
| 481 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); | 481 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); |
| 482 friend class RootWindowController; | 482 friend class RootWindowController; |
| 483 friend class ScopedTargetRootWindow; | 483 friend class ScopedRootWindowForNewWindowsAura; |
| 484 friend class test::ShellTestApi; | 484 friend class test::ShellTestApi; |
| 485 friend class shell::WindowWatcher; | 485 friend class shell::WindowWatcher; |
| 486 | 486 |
| 487 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; | 487 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; |
| 488 | 488 |
| 489 // Takes ownership of |delegate|. | 489 // Takes ownership of |delegate|. |
| 490 Shell(ShellDelegate* delegate, base::SequencedWorkerPool* blocking_pool); | 490 Shell(ShellDelegate* delegate, base::SequencedWorkerPool* blocking_pool); |
| 491 ~Shell() override; | 491 ~Shell() override; |
| 492 | 492 |
| 493 void Init(const ShellInitParams& init_params); | 493 void Init(const ShellInitParams& init_params); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 base::SequencedWorkerPool* blocking_pool_; | 645 base::SequencedWorkerPool* blocking_pool_; |
| 646 | 646 |
| 647 bool in_mus_ = false; | 647 bool in_mus_ = false; |
| 648 | 648 |
| 649 DISALLOW_COPY_AND_ASSIGN(Shell); | 649 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 650 }; | 650 }; |
| 651 | 651 |
| 652 } // namespace ash | 652 } // namespace ash |
| 653 | 653 |
| 654 #endif // ASH_SHELL_H_ | 654 #endif // ASH_SHELL_H_ |
| OLD | NEW |