| 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" |
| 19 |
| 20 namespace gfx { |
| 21 class Point; |
| 22 } |
| 18 | 23 |
| 19 namespace views { | 24 namespace views { |
| 20 class PointerWatcher; | 25 class PointerWatcher; |
| 21 } | 26 } |
| 22 | 27 |
| 23 namespace ash { | 28 namespace ash { |
| 24 | 29 |
| 25 class AcceleratorController; | 30 class AcceleratorController; |
| 26 class AccessibilityDelegate; | 31 class AccessibilityDelegate; |
| 27 class BrightnessControlDelegate; | 32 class BrightnessControlDelegate; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 202 |
| 198 // See aura::client::CursorClient for details on these. | 203 // See aura::client::CursorClient for details on these. |
| 199 virtual void LockCursor() = 0; | 204 virtual void LockCursor() = 0; |
| 200 virtual void UnlockCursor() = 0; | 205 virtual void UnlockCursor() = 0; |
| 201 | 206 |
| 202 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; | 207 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; |
| 203 | 208 |
| 204 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; | 209 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; |
| 205 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0; | 210 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0; |
| 206 | 211 |
| 212 // Shows the context menu for the background and the shelf at |
| 213 // |location_in_screen|. |
| 214 virtual void ShowContextMenu(const gfx::Point& location_in_screen, |
| 215 ui::MenuSourceType source_type) = 0; |
| 216 |
| 207 // Returns a WindowResizer to handle dragging. |next_window_resizer| is | 217 // Returns a WindowResizer to handle dragging. |next_window_resizer| is |
| 208 // the next WindowResizer in the WindowResizer chain. This may return | 218 // the next WindowResizer in the WindowResizer chain. This may return |
| 209 // |next_window_resizer|. | 219 // |next_window_resizer|. |
| 210 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer( | 220 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer( |
| 211 std::unique_ptr<WindowResizer> next_window_resizer, | 221 std::unique_ptr<WindowResizer> next_window_resizer, |
| 212 wm::WindowState* window_state) = 0; | 222 wm::WindowState* window_state) = 0; |
| 213 | 223 |
| 214 virtual std::unique_ptr<WindowCycleEventFilter> | 224 virtual std::unique_ptr<WindowCycleEventFilter> |
| 215 CreateWindowCycleEventFilter() = 0; | 225 CreateWindowCycleEventFilter() = 0; |
| 216 | 226 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 bool simulate_modal_window_open_for_testing_ = false; | 346 bool simulate_modal_window_open_for_testing_ = false; |
| 337 | 347 |
| 338 #if defined(OS_CHROMEOS) | 348 #if defined(OS_CHROMEOS) |
| 339 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 349 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 340 #endif | 350 #endif |
| 341 }; | 351 }; |
| 342 | 352 |
| 343 } // namespace ash | 353 } // namespace ash |
| 344 | 354 |
| 345 #endif // ASH_COMMON_WM_SHELL_H_ | 355 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |