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/common/wm/wm_toplevel_window_event_handler.h" | 9 #include "ash/common/wm/wm_toplevel_window_event_handler.h" |
10 #include "ash/common/wm/wm_types.h" | 10 #include "ash/common/wm/wm_types.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
25 namespace wm { | 25 namespace wm { |
26 class WmGloblals; | 26 class WmGloblals; |
27 } | 27 } |
28 | 28 |
29 class ASH_EXPORT ToplevelWindowEventHandler | 29 class ASH_EXPORT ToplevelWindowEventHandler |
30 : public ui::EventHandler, | 30 : public ui::EventHandler, |
31 public aura::client::WindowMoveClient { | 31 public aura::client::WindowMoveClient { |
32 public: | 32 public: |
33 explicit ToplevelWindowEventHandler(wm::WmGlobals* globals); | 33 explicit ToplevelWindowEventHandler(WmShell* shell); |
34 ~ToplevelWindowEventHandler() override; | 34 ~ToplevelWindowEventHandler() override; |
35 | 35 |
36 // Overridden from ui::EventHandler: | 36 // Overridden from ui::EventHandler: |
37 void OnKeyEvent(ui::KeyEvent* event) override; | 37 void OnKeyEvent(ui::KeyEvent* event) override; |
38 void OnMouseEvent(ui::MouseEvent* event) override; | 38 void OnMouseEvent(ui::MouseEvent* event) override; |
39 void OnGestureEvent(ui::GestureEvent* event) override; | 39 void OnGestureEvent(ui::GestureEvent* event) override; |
40 | 40 |
41 // Overridden form aura::client::WindowMoveClient: | 41 // Overridden form aura::client::WindowMoveClient: |
42 aura::client::WindowMoveResult RunMoveLoop( | 42 aura::client::WindowMoveResult RunMoveLoop( |
43 aura::Window* source, | 43 aura::Window* source, |
(...skipping 14 matching lines...) Expand all Loading... |
58 bool in_move_loop_ = false; | 58 bool in_move_loop_ = false; |
59 | 59 |
60 base::WeakPtrFactory<ToplevelWindowEventHandler> weak_factory_; | 60 base::WeakPtrFactory<ToplevelWindowEventHandler> weak_factory_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); | 62 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace ash | 65 } // namespace ash |
66 | 66 |
67 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 67 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
OLD | NEW |