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 <set> | 8 #include <set> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 : public ui::EventHandler, | 33 : public ui::EventHandler, |
34 public aura::client::WindowMoveClient, | 34 public aura::client::WindowMoveClient, |
35 public DisplayController::Observer { | 35 public DisplayController::Observer { |
36 public: | 36 public: |
37 explicit ToplevelWindowEventHandler(aura::Window* owner); | 37 explicit ToplevelWindowEventHandler(aura::Window* owner); |
38 virtual ~ToplevelWindowEventHandler(); | 38 virtual ~ToplevelWindowEventHandler(); |
39 | 39 |
40 // Overridden from ui::EventHandler: | 40 // Overridden from ui::EventHandler: |
41 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 41 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
42 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 42 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
43 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 43 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
44 | 44 |
45 // Overridden form aura::client::WindowMoveClient: | 45 // Overridden form aura::client::WindowMoveClient: |
46 virtual aura::client::WindowMoveResult RunMoveLoop( | 46 virtual aura::client::WindowMoveResult RunMoveLoop( |
47 aura::Window* source, | 47 aura::Window* source, |
48 const gfx::Vector2d& drag_offset) OVERRIDE; | 48 const gfx::Vector2d& drag_offset) OVERRIDE; |
49 virtual void EndMoveLoop() OVERRIDE; | 49 virtual void EndMoveLoop() OVERRIDE; |
50 | 50 |
51 // Overridden form ash::DisplayController::Observer: | 51 // Overridden form ash::DisplayController::Observer: |
52 virtual void OnDisplayConfigurationChanging() OVERRIDE; | 52 virtual void OnDisplayConfigurationChanging() OVERRIDE; |
53 | 53 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Used to track if this object is deleted while running a nested message | 105 // Used to track if this object is deleted while running a nested message |
106 // loop. If non-null the destructor sets this to true. | 106 // loop. If non-null the destructor sets this to true. |
107 bool* destroyed_; | 107 bool* destroyed_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); | 109 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace aura | 112 } // namespace aura |
113 | 113 |
114 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 114 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
OLD | NEW |