| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MUS_MOVE_EVENT_HANDLER_H_ | 5 #ifndef ASH_MUS_MOVE_EVENT_HANDLER_H_ |
| 6 #define ASH_MUS_MOVE_EVENT_HANDLER_H_ | 6 #define ASH_MUS_MOVE_EVENT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/common/wm/wm_toplevel_window_event_handler.h" | 10 #include "ash/common/wm/wm_toplevel_window_event_handler.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ui/aura/window_observer.h" | 12 #include "ui/aura/window_observer.h" |
| 13 #include "ui/events/event_handler.h" | 13 #include "ui/events/event_handler.h" |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 class Window; | 16 class Window; |
| 17 class WindowManagerClient; | 17 class WindowManagerClient; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace ui { | 20 namespace ui { |
| 21 class CancelModeEvent; | 21 class CancelModeEvent; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 | 25 |
| 26 class WmWindowAura; | 26 class WmWindow; |
| 27 | 27 |
| 28 namespace mus { | 28 namespace mus { |
| 29 | 29 |
| 30 class WorkspaceEventHandlerMus; | 30 class WorkspaceEventHandlerMus; |
| 31 | 31 |
| 32 // EventHandler attached to windows that may be dragged and/or resized. This | 32 // EventHandler attached to windows that may be dragged and/or resized. This |
| 33 // forwards to WmToplevelWindowEventHandler to handle the actual drag/resize. | 33 // forwards to WmToplevelWindowEventHandler to handle the actual drag/resize. |
| 34 // | 34 // |
| 35 // TODO(sky): rename this class to better reflect that it handles redirecting | 35 // TODO(sky): rename this class to better reflect that it handles redirecting |
| 36 // events in addition to drag. | 36 // events in addition to drag. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 WorkspaceEventHandlerMus* GetWorkspaceEventHandlerMus(); | 68 WorkspaceEventHandlerMus* GetWorkspaceEventHandlerMus(); |
| 69 | 69 |
| 70 // Overridden from ui::EventHandler: | 70 // Overridden from ui::EventHandler: |
| 71 void OnMouseEvent(ui::MouseEvent* event) override; | 71 void OnMouseEvent(ui::MouseEvent* event) override; |
| 72 void OnGestureEvent(ui::GestureEvent* event) override; | 72 void OnGestureEvent(ui::GestureEvent* event) override; |
| 73 void OnCancelMode(ui::CancelModeEvent* event) override; | 73 void OnCancelMode(ui::CancelModeEvent* event) override; |
| 74 | 74 |
| 75 // Overridden from aura::WindowObserver: | 75 // Overridden from aura::WindowObserver: |
| 76 void OnWindowDestroying(aura::Window* window) override; | 76 void OnWindowDestroying(aura::Window* window) override; |
| 77 | 77 |
| 78 ash::WmWindowAura* wm_window_; | 78 WmWindow* wm_window_; |
| 79 aura::WindowManagerClient* window_manager_client_; | 79 aura::WindowManagerClient* window_manager_client_; |
| 80 wm::WmToplevelWindowEventHandler toplevel_window_event_handler_; | 80 wm::WmToplevelWindowEventHandler toplevel_window_event_handler_; |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(MoveEventHandler); | 82 DISALLOW_COPY_AND_ASSIGN(MoveEventHandler); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace mus | 85 } // namespace mus |
| 86 } // namespace ash | 86 } // namespace ash |
| 87 | 87 |
| 88 #endif // ASH_MUS_MOVE_EVENT_HANDLER_H_ | 88 #endif // ASH_MUS_MOVE_EVENT_HANDLER_H_ |
| OLD | NEW |