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