| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "ash/ash_export.h" | 13 #include "ash/ash_export.h" |
| 14 #include "ash/common/media_delegate.h" | 14 #include "ash/common/media_delegate.h" |
| 15 #include "ash/common/metrics/user_metrics_action.h" | 15 #include "ash/common/metrics/user_metrics_action.h" |
| 16 #include "ash/common/wm/lock_state_observer.h" | 16 #include "ash/common/wm/lock_state_observer.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 #include "ui/base/ui_base_types.h" | 18 #include "ui/base/ui_base_types.h" |
| 19 | 19 |
| 20 namespace display { |
| 21 class Display; |
| 22 } |
| 23 |
| 20 namespace gfx { | 24 namespace gfx { |
| 21 class Point; | 25 class Point; |
| 22 } | 26 } |
| 23 | 27 |
| 24 namespace views { | 28 namespace views { |
| 25 class PointerWatcher; | 29 class PointerWatcher; |
| 26 } | 30 } |
| 27 | 31 |
| 28 namespace ash { | 32 namespace ash { |
| 29 | 33 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // Returns the root window for the specified display. | 155 // Returns the root window for the specified display. |
| 152 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; | 156 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; |
| 153 | 157 |
| 154 // Returns the root window that newly created windows should be added to. | 158 // Returns the root window that newly created windows should be added to. |
| 155 // Value can be temporarily overridden using ScopedRootWindowForNewWindows. | 159 // Value can be temporarily overridden using ScopedRootWindowForNewWindows. |
| 156 // NOTE: this returns the root, newly created window should be added to the | 160 // NOTE: this returns the root, newly created window should be added to the |
| 157 // appropriate container in the returned window. | 161 // appropriate container in the returned window. |
| 158 WmWindow* GetRootWindowForNewWindows(); | 162 WmWindow* GetRootWindowForNewWindows(); |
| 159 | 163 |
| 160 // Retuns the display info associated with |display_id|. | 164 // Retuns the display info associated with |display_id|. |
| 161 // TODO(msw): Remove this when DisplayManager has been moved. crbug.com/622480 | 165 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 162 virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0; | 166 virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0; |
| 163 | 167 |
| 164 // Matches that of DisplayManager::IsActiveDisplayId(). | 168 // Matches that of DisplayManager::IsActiveDisplayId(). |
| 165 // TODO: Remove this when DisplayManager has been moved. crbug.com/622480 | 169 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 166 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; | 170 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; |
| 167 | 171 |
| 172 // Returns true if the desktop is in unified mode. |
| 173 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 174 virtual bool IsInUnifiedMode() const = 0; |
| 175 |
| 176 // Returns the first display; this is the first display listed by hardware, |
| 177 // which corresponds to internal displays on devices with integrated displays. |
| 178 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 179 virtual display::Display GetFirstDisplay() const = 0; |
| 180 |
| 168 // Returns true if the first window shown on first run should be | 181 // Returns true if the first window shown on first run should be |
| 169 // unconditionally maximized, overriding the heuristic that normally chooses | 182 // unconditionally maximized, overriding the heuristic that normally chooses |
| 170 // the window size. | 183 // the window size. |
| 171 virtual bool IsForceMaximizeOnFirstRun() = 0; | 184 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| 172 | 185 |
| 173 // Returns true if a system-modal dialog window is currently open. | 186 // Returns true if a system-modal dialog window is currently open. |
| 174 bool IsSystemModalWindowOpen(); | 187 bool IsSystemModalWindowOpen(); |
| 175 | 188 |
| 176 // For testing only: set simulation that a modal window is open | 189 // For testing only: set simulation that a modal window is open |
| 177 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 190 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 bool simulate_modal_window_open_for_testing_ = false; | 381 bool simulate_modal_window_open_for_testing_ = false; |
| 369 | 382 |
| 370 #if defined(OS_CHROMEOS) | 383 #if defined(OS_CHROMEOS) |
| 371 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 384 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 372 #endif | 385 #endif |
| 373 }; | 386 }; |
| 374 | 387 |
| 375 } // namespace ash | 388 } // namespace ash |
| 376 | 389 |
| 377 #endif // ASH_COMMON_WM_SHELL_H_ | 390 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |