| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "ui/events/event_handler.h" | 13 #include "ui/events/event_handler.h" |
| 14 #include "ui/wm/public/window_move_client.h" | 14 #include "ui/wm/public/window_move_client.h" |
| 15 | 15 |
| 16 namespace aura { | 16 namespace aura { |
| 17 class Window; | 17 class Window; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 class RunLoop; | 21 class RunLoop; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 namespace wm { | |
| 26 } | |
| 27 | 25 |
| 28 class ASH_EXPORT ToplevelWindowEventHandler | 26 class ASH_EXPORT ToplevelWindowEventHandler |
| 29 : public ui::EventHandler, | 27 : public ui::EventHandler, |
| 30 public aura::client::WindowMoveClient { | 28 public aura::client::WindowMoveClient { |
| 31 public: | 29 public: |
| 32 ToplevelWindowEventHandler(); | 30 ToplevelWindowEventHandler(); |
| 33 ~ToplevelWindowEventHandler() override; | 31 ~ToplevelWindowEventHandler() override; |
| 34 | 32 |
| 35 // Overridden from ui::EventHandler: | 33 // Overridden from ui::EventHandler: |
| 36 void OnKeyEvent(ui::KeyEvent* event) override; | 34 void OnKeyEvent(ui::KeyEvent* event) override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 57 bool in_move_loop_ = false; | 55 bool in_move_loop_ = false; |
| 58 | 56 |
| 59 base::WeakPtrFactory<ToplevelWindowEventHandler> weak_factory_; | 57 base::WeakPtrFactory<ToplevelWindowEventHandler> weak_factory_; |
| 60 | 58 |
| 61 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); | 59 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); |
| 62 }; | 60 }; |
| 63 | 61 |
| 64 } // namespace ash | 62 } // namespace ash |
| 65 | 63 |
| 66 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 64 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| OLD | NEW |