| 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_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_ |
| 6 #define ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/workspace/workspace_event_handler.h" | 9 #include "ash/wm/workspace/workspace_event_handler.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/events/event_handler.h" | 11 #include "ui/events/event_handler.h" |
| 12 | 12 |
| 13 namespace aura { |
| 14 class Window; |
| 15 } |
| 16 |
| 13 namespace ash { | 17 namespace ash { |
| 14 | 18 |
| 15 class WmWindow; | |
| 16 | |
| 17 class ASH_EXPORT WorkspaceEventHandlerAura : public ui::EventHandler, | 19 class ASH_EXPORT WorkspaceEventHandlerAura : public ui::EventHandler, |
| 18 public WorkspaceEventHandler { | 20 public WorkspaceEventHandler { |
| 19 public: | 21 public: |
| 20 explicit WorkspaceEventHandlerAura(WmWindow* workspace_window); | 22 explicit WorkspaceEventHandlerAura(aura::Window* workspace_window); |
| 21 ~WorkspaceEventHandlerAura() override; | 23 ~WorkspaceEventHandlerAura() override; |
| 22 | 24 |
| 23 // ui::EventHandler: | 25 // ui::EventHandler: |
| 24 void OnMouseEvent(ui::MouseEvent* event) override; | 26 void OnMouseEvent(ui::MouseEvent* event) override; |
| 25 void OnGestureEvent(ui::GestureEvent* event) override; | 27 void OnGestureEvent(ui::GestureEvent* event) override; |
| 26 | 28 |
| 27 private: | 29 private: |
| 28 WmWindow* workspace_window_; | 30 aura::Window* workspace_window_; |
| 29 | 31 |
| 30 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerAura); | 32 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerAura); |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 } // namespace ash | 35 } // namespace ash |
| 34 | 36 |
| 35 #endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_ | 37 #endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_ |
| OLD | NEW |