| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 views::Widget* widget); | 278 views::Widget* widget); |
| 279 | 279 |
| 280 // Sets work area insets of the display containing |window|, pings observers. | 280 // Sets work area insets of the display containing |window|, pings observers. |
| 281 void SetDisplayWorkAreaInsets(aura::Window* window, | 281 void SetDisplayWorkAreaInsets(aura::Window* window, |
| 282 const gfx::Insets& insets); | 282 const gfx::Insets& insets); |
| 283 | 283 |
| 284 // Called when a casting session is started or stopped. | 284 // Called when a casting session is started or stopped. |
| 285 void OnCastingSessionStartedOrStopped(bool started); | 285 void OnCastingSessionStartedOrStopped(bool started); |
| 286 | 286 |
| 287 // Called when a root window is created. | 287 // Called when a root window is created. |
| 288 void OnRootWindowAdded(WmWindow* root_window); | 288 void OnRootWindowAdded(aura::Window* root_window); |
| 289 | 289 |
| 290 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already | 290 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already |
| 291 // exists. | 291 // exists. |
| 292 void CreateKeyboard(); | 292 void CreateKeyboard(); |
| 293 | 293 |
| 294 // Deactivates the virtual keyboard. | 294 // Deactivates the virtual keyboard. |
| 295 void DeactivateKeyboard(); | 295 void DeactivateKeyboard(); |
| 296 | 296 |
| 297 // Test if MaximizeModeWindowManager is not enabled, and if | 297 // Test if MaximizeModeWindowManager is not enabled, and if |
| 298 // MaximizeModeController is not currently setting a display rotation. Or if | 298 // MaximizeModeController is not currently setting a display rotation. Or if |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 void NotifyMaximizeModeEnded(); | 579 void NotifyMaximizeModeEnded(); |
| 580 | 580 |
| 581 // Notifies observers that overview mode is about to be started (before the | 581 // Notifies observers that overview mode is about to be started (before the |
| 582 // windows get re-arranged). | 582 // windows get re-arranged). |
| 583 void NotifyOverviewModeStarting(); | 583 void NotifyOverviewModeStarting(); |
| 584 | 584 |
| 585 // Notifies observers that overview mode has ended. | 585 // Notifies observers that overview mode has ended. |
| 586 void NotifyOverviewModeEnded(); | 586 void NotifyOverviewModeEnded(); |
| 587 | 587 |
| 588 // Notifies observers that fullscreen mode has changed for |root_window|. | 588 // Notifies observers that fullscreen mode has changed for |root_window|. |
| 589 void NotifyFullscreenStateChanged(bool is_fullscreen, WmWindow* root_window); | 589 void NotifyFullscreenStateChanged(bool is_fullscreen, |
| 590 aura::Window* root_window); |
| 590 | 591 |
| 591 // Notifies observers that |pinned_window| changed its pinned window state. | 592 // Notifies observers that |pinned_window| changed its pinned window state. |
| 592 void NotifyPinnedStateChanged(aura::Window* pinned_window); | 593 void NotifyPinnedStateChanged(aura::Window* pinned_window); |
| 593 | 594 |
| 594 // Notifies observers that the virtual keyboard has been | 595 // Notifies observers that the virtual keyboard has been |
| 595 // activated/deactivated for |root_window|. | 596 // activated/deactivated for |root_window|. |
| 596 void NotifyVirtualKeyboardActivated(bool activated, | 597 void NotifyVirtualKeyboardActivated(bool activated, |
| 597 aura::Window* root_window); | 598 aura::Window* root_window); |
| 598 | 599 |
| 599 // Notifies observers that the shelf was created for |root_window|. | 600 // Notifies observers that the shelf was created for |root_window|. |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 base::ObserverList<ShellObserver> shell_observers_; | 835 base::ObserverList<ShellObserver> shell_observers_; |
| 835 | 836 |
| 836 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 837 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 837 | 838 |
| 838 DISALLOW_COPY_AND_ASSIGN(Shell); | 839 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 839 }; | 840 }; |
| 840 | 841 |
| 841 } // namespace ash | 842 } // namespace ash |
| 842 | 843 |
| 843 #endif // ASH_SHELL_H_ | 844 #endif // ASH_SHELL_H_ |
| OLD | NEW |