Chromium Code Reviews| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 | 191 |
| 192 // Retuns the display info associated with |display_id|. | 192 // Retuns the display info associated with |display_id|. |
| 193 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 193 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 194 virtual const display::ManagedDisplayInfo& GetDisplayInfo( | 194 virtual const display::ManagedDisplayInfo& GetDisplayInfo( |
| 195 int64_t display_id) const = 0; | 195 int64_t display_id) const = 0; |
| 196 | 196 |
| 197 // Matches that of DisplayManager::IsActiveDisplayId(). | 197 // Matches that of DisplayManager::IsActiveDisplayId(). |
| 198 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 198 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 199 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; | 199 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; |
| 200 | 200 |
| 201 // Returns true if the desktop is in unified mode and there are no mirroring | |
| 202 // displays. | |
| 203 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | |
| 204 virtual bool IsInUnifiedMode() const = 0; | |
|
sky
2016/09/15 03:27:14
It's unfortunate we need the two, but hopefully we
msw
2016/09/15 17:29:36
Acknowledged.
| |
| 205 | |
| 201 // Returns true if the desktop is in unified mode. | 206 // Returns true if the desktop is in unified mode. |
| 202 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 207 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 203 virtual bool IsInUnifiedMode() const = 0; | 208 virtual bool IsInUnifiedModeIgnoreMirroring() const = 0; |
| 204 | 209 |
| 205 // Returns the first display; this is the first display listed by hardware, | 210 // Returns the first display; this is the first display listed by hardware, |
| 206 // which corresponds to internal displays on devices with integrated displays. | 211 // which corresponds to internal displays on devices with integrated displays. |
| 207 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 212 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 208 virtual display::Display GetFirstDisplay() const = 0; | 213 virtual display::Display GetFirstDisplay() const = 0; |
| 209 | 214 |
| 210 // Returns true if the first window shown on first run should be | 215 // Returns true if the first window shown on first run should be |
| 211 // unconditionally maximized, overriding the heuristic that normally chooses | 216 // unconditionally maximized, overriding the heuristic that normally chooses |
| 212 // the window size. | 217 // the window size. |
| 213 virtual bool IsForceMaximizeOnFirstRun() = 0; | 218 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 461 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 466 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 462 | 467 |
| 463 #if defined(OS_CHROMEOS) | 468 #if defined(OS_CHROMEOS) |
| 464 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 469 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 465 #endif | 470 #endif |
| 466 }; | 471 }; |
| 467 | 472 |
| 468 } // namespace ash | 473 } // namespace ash |
| 469 | 474 |
| 470 #endif // ASH_COMMON_WM_SHELL_H_ | 475 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |