| 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/user_metrics_action.h" | 16 #include "ash/common/metrics/user_metrics_action.h" |
| 16 #include "ash/common/wm/lock_state_observer.h" | 17 #include "ash/common/wm/lock_state_observer.h" |
| 17 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
| 18 #include "ui/base/ui_base_types.h" | 19 #include "ui/base/ui_base_types.h" |
| 19 | 20 |
| 20 namespace gfx { | 21 namespace gfx { |
| 21 class Point; | 22 class Point; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace views { | 25 namespace views { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // |window|. | 212 // |window|. |
| 212 // TODO(jamescook): Remove this when ShellDelegate has been moved. | 213 // TODO(jamescook): Remove this when ShellDelegate has been moved. |
| 213 virtual bool CanShowWindowForUser(WmWindow* window) = 0; | 214 virtual bool CanShowWindowForUser(WmWindow* window) = 0; |
| 214 | 215 |
| 215 // See aura::client::CursorClient for details on these. | 216 // See aura::client::CursorClient for details on these. |
| 216 virtual void LockCursor() = 0; | 217 virtual void LockCursor() = 0; |
| 217 virtual void UnlockCursor() = 0; | 218 virtual void UnlockCursor() = 0; |
| 218 | 219 |
| 219 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; | 220 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; |
| 220 | 221 |
| 222 virtual void RecordGestureAction(GestureActionType action) = 0; |
| 221 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; | 223 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; |
| 222 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0; | 224 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0; |
| 223 | 225 |
| 224 // Shows the context menu for the background and the shelf at | 226 // Shows the context menu for the background and the shelf at |
| 225 // |location_in_screen|. | 227 // |location_in_screen|. |
| 226 virtual void ShowContextMenu(const gfx::Point& location_in_screen, | 228 virtual void ShowContextMenu(const gfx::Point& location_in_screen, |
| 227 ui::MenuSourceType source_type) = 0; | 229 ui::MenuSourceType source_type) = 0; |
| 228 | 230 |
| 229 // Returns a WindowResizer to handle dragging. |next_window_resizer| is | 231 // Returns a WindowResizer to handle dragging. |next_window_resizer| is |
| 230 // the next WindowResizer in the WindowResizer chain. This may return | 232 // the next WindowResizer in the WindowResizer chain. This may return |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 bool simulate_modal_window_open_for_testing_ = false; | 370 bool simulate_modal_window_open_for_testing_ = false; |
| 369 | 371 |
| 370 #if defined(OS_CHROMEOS) | 372 #if defined(OS_CHROMEOS) |
| 371 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 373 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 372 #endif | 374 #endif |
| 373 }; | 375 }; |
| 374 | 376 |
| 375 } // namespace ash | 377 } // namespace ash |
| 376 | 378 |
| 377 #endif // ASH_COMMON_WM_SHELL_H_ | 379 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |