| 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> |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 virtual void LockCursor() = 0; | 270 virtual void LockCursor() = 0; |
| 271 virtual void UnlockCursor() = 0; | 271 virtual void UnlockCursor() = 0; |
| 272 virtual bool IsMouseEventsEnabled() = 0; | 272 virtual bool IsMouseEventsEnabled() = 0; |
| 273 | 273 |
| 274 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; | 274 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; |
| 275 | 275 |
| 276 virtual void RecordGestureAction(GestureActionType action) = 0; | 276 virtual void RecordGestureAction(GestureActionType action) = 0; |
| 277 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; | 277 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; |
| 278 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0; | 278 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0; |
| 279 | 279 |
| 280 // Shows the context menu for the background and the shelf at | 280 // Shows the context menu for the wallpaper or shelf at |location_in_screen|. |
| 281 // |location_in_screen|. | 281 void ShowContextMenu(const gfx::Point& location_in_screen, |
| 282 virtual void ShowContextMenu(const gfx::Point& location_in_screen, | 282 ui::MenuSourceType source_type); |
| 283 ui::MenuSourceType source_type) = 0; | |
| 284 | 283 |
| 285 // Returns a WindowResizer to handle dragging. |next_window_resizer| is | 284 // Returns a WindowResizer to handle dragging. |next_window_resizer| is |
| 286 // the next WindowResizer in the WindowResizer chain. This may return | 285 // the next WindowResizer in the WindowResizer chain. This may return |
| 287 // |next_window_resizer|. | 286 // |next_window_resizer|. |
| 288 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer( | 287 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer( |
| 289 std::unique_ptr<WindowResizer> next_window_resizer, | 288 std::unique_ptr<WindowResizer> next_window_resizer, |
| 290 wm::WindowState* window_state) = 0; | 289 wm::WindowState* window_state) = 0; |
| 291 | 290 |
| 292 virtual std::unique_ptr<WindowCycleEventFilter> | 291 virtual std::unique_ptr<WindowCycleEventFilter> |
| 293 CreateWindowCycleEventFilter() = 0; | 292 CreateWindowCycleEventFilter() = 0; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 461 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 463 | 462 |
| 464 #if defined(OS_CHROMEOS) | 463 #if defined(OS_CHROMEOS) |
| 465 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 464 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 466 #endif | 465 #endif |
| 467 }; | 466 }; |
| 468 | 467 |
| 469 } // namespace ash | 468 } // namespace ash |
| 470 | 469 |
| 471 #endif // ASH_COMMON_WM_SHELL_H_ | 470 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |