| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_SHELL_H_ | 5 #ifndef ASH_COMMON_WM_SHELL_H_ |
| 6 #define ASH_COMMON_WM_SHELL_H_ | 6 #define ASH_COMMON_WM_SHELL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // their original position. | 276 // their original position. |
| 277 void OnMaximizeModeEnded(); | 277 void OnMaximizeModeEnded(); |
| 278 | 278 |
| 279 // Called when the overview mode is about to be started (before the windows | 279 // Called when the overview mode is about to be started (before the windows |
| 280 // get re-arranged). | 280 // get re-arranged). |
| 281 virtual void OnOverviewModeStarting() = 0; | 281 virtual void OnOverviewModeStarting() = 0; |
| 282 | 282 |
| 283 // Called after overview mode has ended. | 283 // Called after overview mode has ended. |
| 284 virtual void OnOverviewModeEnded() = 0; | 284 virtual void OnOverviewModeEnded() = 0; |
| 285 | 285 |
| 286 // Notifies observers after toggling fullscreen mode in |root_window|. | 286 // Notify observers that fullscreen mode has changed for |root_window|. |
| 287 void NotifyFullscreenStateChanged(bool is_fullscreen, WmWindow* root_window); | 287 void NotifyFullscreenStateChanged(bool is_fullscreen, WmWindow* root_window); |
| 288 | 288 |
| 289 // Notifies |observers_| when entering or exiting pinned mode for | 289 // Notify observers that |pinned_window| changed its pinned window state. |
| 290 // |pinned_window|. Entering or exiting can be checked by looking at | |
| 291 // |pinned_window|'s window state. | |
| 292 void NotifyPinnedStateChanged(WmWindow* pinned_window); | 290 void NotifyPinnedStateChanged(WmWindow* pinned_window); |
| 293 | 291 |
| 294 // Called when virtual keyboard has been activated/deactivated. | 292 // Notify observers that the virtual keyboard has been activated/deactivated. |
| 295 void OnVirtualKeyboardActivated(bool activated); | 293 void NotifyVirtualKeyboardActivated(bool activated); |
| 294 |
| 295 // Notify observers that the shelf was created for |root_window|. |
| 296 // TODO(jamescook): Move to Shelf. |
| 297 void NotifyShelfCreatedForRootWindow(WmWindow* root_window); |
| 298 |
| 299 // Notify observers that |root_window|'s shelf changed auto-hide alignment. |
| 300 // TODO(jamescook): Move to Shelf. |
| 301 void NotifyShelfAlignmentChanged(WmWindow* root_window); |
| 302 |
| 303 // Notify observers that |root_window|'s shelf changed auto-hide behavior. |
| 304 // TODO(jamescook): Move to Shelf. |
| 305 void NotifyShelfAutoHideBehaviorChanged(WmWindow* root_window); |
| 296 | 306 |
| 297 virtual SessionStateDelegate* GetSessionStateDelegate() = 0; | 307 virtual SessionStateDelegate* GetSessionStateDelegate() = 0; |
| 298 | 308 |
| 299 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; | 309 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; |
| 300 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; | 310 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; |
| 301 | 311 |
| 302 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; | 312 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; |
| 303 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; | 313 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; |
| 304 | 314 |
| 305 void AddShellObserver(ShellObserver* observer); | 315 void AddShellObserver(ShellObserver* observer); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 bool simulate_modal_window_open_for_testing_ = false; | 409 bool simulate_modal_window_open_for_testing_ = false; |
| 400 | 410 |
| 401 #if defined(OS_CHROMEOS) | 411 #if defined(OS_CHROMEOS) |
| 402 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 412 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 403 #endif | 413 #endif |
| 404 }; | 414 }; |
| 405 | 415 |
| 406 } // namespace ash | 416 } // namespace ash |
| 407 | 417 |
| 408 #endif // ASH_COMMON_WM_SHELL_H_ | 418 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |