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_FILTER_H_ | 5 #ifndef ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ |
6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ | 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual bool PreHandleMouseEvent(aura::Window* target, | 47 virtual bool PreHandleMouseEvent(aura::Window* target, |
48 ui::MouseEvent* event) OVERRIDE; | 48 ui::MouseEvent* event) OVERRIDE; |
49 virtual ui::TouchStatus PreHandleTouchEvent( | 49 virtual ui::TouchStatus PreHandleTouchEvent( |
50 aura::Window* target, | 50 aura::Window* target, |
51 ui::TouchEvent* event) OVERRIDE; | 51 ui::TouchEvent* event) OVERRIDE; |
52 virtual ui::GestureStatus PreHandleGestureEvent( | 52 virtual ui::GestureStatus PreHandleGestureEvent( |
53 aura::Window* target, | 53 aura::Window* target, |
54 ui::GestureEvent* event) OVERRIDE; | 54 ui::GestureEvent* event) OVERRIDE; |
55 | 55 |
56 // Overridden form aura::client::WindowMoveClient: | 56 // Overridden form aura::client::WindowMoveClient: |
57 virtual void RunMoveLoop(aura::Window* source) OVERRIDE; | 57 virtual void RunMoveLoop(aura::Window* source, |
| 58 const gfx::Point& drag_offset) OVERRIDE; |
58 virtual void EndMoveLoop() OVERRIDE; | 59 virtual void EndMoveLoop() OVERRIDE; |
59 | 60 |
60 protected: | 61 protected: |
61 // Creates a new WindowResizer. | 62 // Creates a new WindowResizer. |
62 virtual WindowResizer* CreateWindowResizer(aura::Window* window, | 63 virtual WindowResizer* CreateWindowResizer(aura::Window* window, |
63 const gfx::Point& point_in_parent, | 64 const gfx::Point& point_in_parent, |
64 int window_component); | 65 int window_component); |
65 | 66 |
66 private: | 67 private: |
67 enum DragCompletionStatus { | 68 enum DragCompletionStatus { |
(...skipping 28 matching lines...) Expand all Loading... |
96 scoped_ptr<WindowResizer> window_resizer_; | 97 scoped_ptr<WindowResizer> window_resizer_; |
97 | 98 |
98 base::Closure quit_closure_; | 99 base::Closure quit_closure_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventFilter); | 101 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventFilter); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace aura | 104 } // namespace aura |
104 | 105 |
105 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ | 106 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_FILTER_H_ |
OLD | NEW |