| 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 Insets; |
| 27 class Point; | 27 class Point; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace ui { |
| 31 class ManagedDisplayInfo; |
| 32 } |
| 33 |
| 30 namespace views { | 34 namespace views { |
| 31 class PointerWatcher; | 35 class PointerWatcher; |
| 32 } | 36 } |
| 33 | 37 |
| 34 namespace ash { | 38 namespace ash { |
| 35 | 39 |
| 36 class AcceleratorController; | 40 class AcceleratorController; |
| 37 class AccessibilityDelegate; | 41 class AccessibilityDelegate; |
| 38 class BrightnessControlDelegate; | 42 class BrightnessControlDelegate; |
| 39 class DisplayInfo; | |
| 40 class FocusCycler; | 43 class FocusCycler; |
| 41 class ImmersiveContextAsh; | 44 class ImmersiveContextAsh; |
| 42 class ImmersiveFullscreenController; | 45 class ImmersiveFullscreenController; |
| 43 class KeyboardBrightnessControlDelegate; | 46 class KeyboardBrightnessControlDelegate; |
| 44 class KeyboardUI; | 47 class KeyboardUI; |
| 45 class MaximizeModeController; | 48 class MaximizeModeController; |
| 46 class MruWindowTracker; | 49 class MruWindowTracker; |
| 47 class NewWindowDelegate; | 50 class NewWindowDelegate; |
| 48 class PaletteDelegate; | 51 class PaletteDelegate; |
| 49 class ScopedDisableInternalMouseAndKeyboard; | 52 class ScopedDisableInternalMouseAndKeyboard; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; | 168 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; |
| 166 | 169 |
| 167 // Returns the root window that newly created windows should be added to. | 170 // Returns the root window that newly created windows should be added to. |
| 168 // Value can be temporarily overridden using ScopedRootWindowForNewWindows. | 171 // Value can be temporarily overridden using ScopedRootWindowForNewWindows. |
| 169 // NOTE: this returns the root, newly created window should be added to the | 172 // NOTE: this returns the root, newly created window should be added to the |
| 170 // appropriate container in the returned window. | 173 // appropriate container in the returned window. |
| 171 WmWindow* GetRootWindowForNewWindows(); | 174 WmWindow* GetRootWindowForNewWindows(); |
| 172 | 175 |
| 173 // Retuns the display info associated with |display_id|. | 176 // Retuns the display info associated with |display_id|. |
| 174 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 177 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 175 virtual const DisplayInfo& GetDisplayInfo(int64_t display_id) const = 0; | 178 virtual const ui::ManagedDisplayInfo& GetDisplayInfo( |
| 179 int64_t display_id) const = 0; |
| 176 | 180 |
| 177 // Matches that of DisplayManager::IsActiveDisplayId(). | 181 // Matches that of DisplayManager::IsActiveDisplayId(). |
| 178 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 182 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 179 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; | 183 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; |
| 180 | 184 |
| 181 // Returns true if the desktop is in unified mode. | 185 // Returns true if the desktop is in unified mode. |
| 182 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 186 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 183 virtual bool IsInUnifiedMode() const = 0; | 187 virtual bool IsInUnifiedMode() const = 0; |
| 184 | 188 |
| 185 // Returns the first display; this is the first display listed by hardware, | 189 // Returns the first display; this is the first display listed by hardware, |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 bool simulate_modal_window_open_for_testing_ = false; | 424 bool simulate_modal_window_open_for_testing_ = false; |
| 421 | 425 |
| 422 #if defined(OS_CHROMEOS) | 426 #if defined(OS_CHROMEOS) |
| 423 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 427 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 424 #endif | 428 #endif |
| 425 }; | 429 }; |
| 426 | 430 |
| 427 } // namespace ash | 431 } // namespace ash |
| 428 | 432 |
| 429 #endif // ASH_COMMON_WM_SHELL_H_ | 433 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |