| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 virtual bool IsInUnifiedModeIgnoreMirroring() const = 0; | 263 virtual bool IsInUnifiedModeIgnoreMirroring() const = 0; |
| 264 | 264 |
| 265 // Returns the first display; this is the first display listed by hardware, | 265 // Returns the first display; this is the first display listed by hardware, |
| 266 // which corresponds to internal displays on devices with integrated displays. | 266 // which corresponds to internal displays on devices with integrated displays. |
| 267 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 267 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 268 virtual display::Display GetFirstDisplay() const = 0; | 268 virtual display::Display GetFirstDisplay() const = 0; |
| 269 | 269 |
| 270 // Returns true if the first window shown on first run should be | 270 // Returns true if the first window shown on first run should be |
| 271 // unconditionally maximized, overriding the heuristic that normally chooses | 271 // unconditionally maximized, overriding the heuristic that normally chooses |
| 272 // the window size. | 272 // the window size. |
| 273 virtual bool IsForceMaximizeOnFirstRun() = 0; | 273 bool IsForceMaximizeOnFirstRun(); |
| 274 | 274 |
| 275 // Sets work area insets of the display containing |window|, pings observers. | 275 // Sets work area insets of the display containing |window|, pings observers. |
| 276 virtual void SetDisplayWorkAreaInsets(WmWindow* window, | 276 virtual void SetDisplayWorkAreaInsets(WmWindow* window, |
| 277 const gfx::Insets& insets) = 0; | 277 const gfx::Insets& insets) = 0; |
| 278 | 278 |
| 279 // Returns true if a system-modal dialog window is currently open. | 279 // Returns true if a system-modal dialog window is currently open. |
| 280 bool IsSystemModalWindowOpen(); | 280 bool IsSystemModalWindowOpen(); |
| 281 | 281 |
| 282 // Creates a modal background (a partially-opaque fullscreen window) on all | 282 // Creates a modal background (a partially-opaque fullscreen window) on all |
| 283 // displays for |window|. | 283 // displays for |window|. |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 551 |
| 552 bool added_activation_observer_ = false; | 552 bool added_activation_observer_ = false; |
| 553 base::ObserverList<WmActivationObserver> activation_observers_; | 553 base::ObserverList<WmActivationObserver> activation_observers_; |
| 554 | 554 |
| 555 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 555 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 556 }; | 556 }; |
| 557 | 557 |
| 558 } // namespace ash | 558 } // namespace ash |
| 559 | 559 |
| 560 #endif // ASH_COMMON_WM_SHELL_H_ | 560 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |