| 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/gesture_action_type.h" | 15 #include "ash/common/metrics/gesture_action_type.h" |
| 16 #include "ash/common/metrics/user_metrics_action.h" | 16 #include "ash/common/metrics/user_metrics_action.h" |
| 17 #include "ash/common/wm/lock_state_observer.h" | 17 #include "ash/common/wm/lock_state_observer.h" |
| 18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
| 19 #include "ui/base/ui_base_types.h" | 19 #include "ui/base/ui_base_types.h" |
| 20 | 20 |
| 21 namespace display { | 21 namespace display { |
| 22 class Display; | 22 class Display; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace gfx { | 25 namespace gfx { |
| 26 class Insets; |
| 26 class Point; | 27 class Point; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace views { | 30 namespace views { |
| 30 class PointerWatcher; | 31 class PointerWatcher; |
| 31 } | 32 } |
| 32 | 33 |
| 33 namespace ash { | 34 namespace ash { |
| 34 | 35 |
| 35 class AcceleratorController; | 36 class AcceleratorController; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Returns the first display; this is the first display listed by hardware, | 182 // Returns the first display; this is the first display listed by hardware, |
| 182 // which corresponds to internal displays on devices with integrated displays. | 183 // which corresponds to internal displays on devices with integrated displays. |
| 183 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 184 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 184 virtual display::Display GetFirstDisplay() const = 0; | 185 virtual display::Display GetFirstDisplay() const = 0; |
| 185 | 186 |
| 186 // Returns true if the first window shown on first run should be | 187 // Returns true if the first window shown on first run should be |
| 187 // unconditionally maximized, overriding the heuristic that normally chooses | 188 // unconditionally maximized, overriding the heuristic that normally chooses |
| 188 // the window size. | 189 // the window size. |
| 189 virtual bool IsForceMaximizeOnFirstRun() = 0; | 190 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| 190 | 191 |
| 192 // Sets work area insets of the display containing |window|, pings observers. |
| 193 virtual void SetDisplayWorkAreaInsets(WmWindow* window, |
| 194 const gfx::Insets& insets) = 0; |
| 195 |
| 191 // Returns true if a system-modal dialog window is currently open. | 196 // Returns true if a system-modal dialog window is currently open. |
| 192 bool IsSystemModalWindowOpen(); | 197 bool IsSystemModalWindowOpen(); |
| 193 | 198 |
| 194 // For testing only: set simulation that a modal window is open | 199 // For testing only: set simulation that a modal window is open |
| 195 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 200 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
| 196 simulate_modal_window_open_for_testing_ = modal_window_open; | 201 simulate_modal_window_open_for_testing_ = modal_window_open; |
| 197 } | 202 } |
| 198 | 203 |
| 199 // Shows the app list on the active root window. | 204 // Shows the app list on the active root window. |
| 200 void ShowAppList(); | 205 void ShowAppList(); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 bool simulate_modal_window_open_for_testing_ = false; | 396 bool simulate_modal_window_open_for_testing_ = false; |
| 392 | 397 |
| 393 #if defined(OS_CHROMEOS) | 398 #if defined(OS_CHROMEOS) |
| 394 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 399 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 395 #endif | 400 #endif |
| 396 }; | 401 }; |
| 397 | 402 |
| 398 } // namespace ash | 403 } // namespace ash |
| 399 | 404 |
| 400 #endif // ASH_COMMON_WM_SHELL_H_ | 405 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |