| 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 #include "ui/compositor/layer_type.h" |
| 21 #include "ui/wm/public/window_types.h" |
| 20 | 22 |
| 21 namespace display { | 23 namespace display { |
| 22 class Display; | 24 class Display; |
| 23 class ManagedDisplayInfo; | 25 class ManagedDisplayInfo; |
| 24 } | 26 } |
| 25 | 27 |
| 26 namespace gfx { | 28 namespace gfx { |
| 27 class Insets; | 29 class Insets; |
| 28 class Point; | 30 class Point; |
| 29 } | 31 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 WallpaperDelegate* wallpaper_delegate() { return wallpaper_delegate_.get(); } | 150 WallpaperDelegate* wallpaper_delegate() { return wallpaper_delegate_.get(); } |
| 149 | 151 |
| 150 WindowCycleController* window_cycle_controller() { | 152 WindowCycleController* window_cycle_controller() { |
| 151 return window_cycle_controller_.get(); | 153 return window_cycle_controller_.get(); |
| 152 } | 154 } |
| 153 | 155 |
| 154 WindowSelectorController* window_selector_controller() { | 156 WindowSelectorController* window_selector_controller() { |
| 155 return window_selector_controller_.get(); | 157 return window_selector_controller_.get(); |
| 156 } | 158 } |
| 157 | 159 |
| 158 // Creates a new window used as a container of other windows. No painting is | 160 virtual WmWindow* NewWindow(ui::wm::WindowType window_type, |
| 159 // done to the created window. | 161 ui::LayerType layer_type) = 0; |
| 160 virtual WmWindow* NewContainerWindow() = 0; | |
| 161 | 162 |
| 162 virtual WmWindow* GetFocusedWindow() = 0; | 163 virtual WmWindow* GetFocusedWindow() = 0; |
| 163 virtual WmWindow* GetActiveWindow() = 0; | 164 virtual WmWindow* GetActiveWindow() = 0; |
| 164 | 165 |
| 165 virtual WmWindow* GetCaptureWindow() = 0; | 166 virtual WmWindow* GetCaptureWindow() = 0; |
| 166 | 167 |
| 167 virtual WmWindow* GetPrimaryRootWindow() = 0; | 168 virtual WmWindow* GetPrimaryRootWindow() = 0; |
| 168 | 169 |
| 169 // Returns the root window for the specified display. | 170 // Returns the root window for the specified display. |
| 170 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; | 171 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 bool simulate_modal_window_open_for_testing_ = false; | 434 bool simulate_modal_window_open_for_testing_ = false; |
| 434 | 435 |
| 435 #if defined(OS_CHROMEOS) | 436 #if defined(OS_CHROMEOS) |
| 436 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 437 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 437 #endif | 438 #endif |
| 438 }; | 439 }; |
| 439 | 440 |
| 440 } // namespace ash | 441 } // namespace ash |
| 441 | 442 |
| 442 #endif // ASH_COMMON_WM_SHELL_H_ | 443 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |