| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 5 #ifndef ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/wm_toplevel_window_event_handler.h" | 9 #include "ash/wm/wm_toplevel_window_event_handler.h" |
| 10 #include "ash/wm/wm_types.h" | 10 #include "ash/wm/wm_types.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 namespace wm { | 25 namespace wm { |
| 26 } | 26 } |
| 27 | 27 |
| 28 class ASH_EXPORT ToplevelWindowEventHandler | 28 class ASH_EXPORT ToplevelWindowEventHandler |
| 29 : public ui::EventHandler, | 29 : public ui::EventHandler, |
| 30 public aura::client::WindowMoveClient { | 30 public aura::client::WindowMoveClient { |
| 31 public: | 31 public: |
| 32 explicit ToplevelWindowEventHandler(WmShell* shell); | 32 ToplevelWindowEventHandler(); |
| 33 ~ToplevelWindowEventHandler() override; | 33 ~ToplevelWindowEventHandler() override; |
| 34 | 34 |
| 35 // Overridden from ui::EventHandler: | 35 // Overridden from ui::EventHandler: |
| 36 void OnKeyEvent(ui::KeyEvent* event) override; | 36 void OnKeyEvent(ui::KeyEvent* event) override; |
| 37 void OnMouseEvent(ui::MouseEvent* event) override; | 37 void OnMouseEvent(ui::MouseEvent* event) override; |
| 38 void OnGestureEvent(ui::GestureEvent* event) override; | 38 void OnGestureEvent(ui::GestureEvent* event) override; |
| 39 | 39 |
| 40 // Overridden form aura::client::WindowMoveClient: | 40 // Overridden form aura::client::WindowMoveClient: |
| 41 aura::client::WindowMoveResult RunMoveLoop( | 41 aura::client::WindowMoveResult RunMoveLoop( |
| 42 aura::Window* source, | 42 aura::Window* source, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 57 bool in_move_loop_ = false; | 57 bool in_move_loop_ = false; |
| 58 | 58 |
| 59 base::WeakPtrFactory<ToplevelWindowEventHandler> weak_factory_; | 59 base::WeakPtrFactory<ToplevelWindowEventHandler> weak_factory_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); | 61 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace ash | 64 } // namespace ash |
| 65 | 65 |
| 66 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 66 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| OLD | NEW |