OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 5 #ifndef UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/scoped_observer.h" | 16 #include "base/scoped_observer.h" |
17 #include "ui/aura/aura_export.h" | 17 #include "ui/aura/aura_export.h" |
18 #include "ui/aura/client/capture_delegate.h" | 18 #include "ui/aura/client/capture_delegate.h" |
19 #include "ui/aura/env_observer.h" | 19 #include "ui/aura/env_observer.h" |
20 #include "ui/aura/window_observer.h" | 20 #include "ui/aura/window_observer.h" |
21 #include "ui/base/cursor/cursor.h" | 21 #include "ui/base/cursor/cursor.h" |
22 #include "ui/events/event_constants.h" | 22 #include "ui/events/event_constants.h" |
23 #include "ui/events/event_processor.h" | 23 #include "ui/events/event_processor.h" |
24 #include "ui/events/event_targeter.h" | 24 #include "ui/events/event_targeter.h" |
25 #include "ui/events/gestures/gesture_recognizer.h" | 25 #include "ui/events/gestures/gesture_recognizer.h" |
26 #include "ui/events/gestures/gesture_types.h" | 26 #include "ui/events/gestures/gesture_types.h" |
27 #include "ui/gfx/geometry/point.h" | 27 #include "ui/gfx/geometry/point.h" |
28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
29 | 29 |
30 namespace gfx { | |
31 class Size; | |
32 class Transform; | |
33 } | |
34 | |
35 namespace ui { | 30 namespace ui { |
36 class GestureEvent; | 31 class GestureEvent; |
37 class GestureRecognizer; | 32 class GestureRecognizer; |
38 class KeyEvent; | |
39 class MouseEvent; | 33 class MouseEvent; |
40 class ScrollEvent; | |
41 class TouchEvent; | 34 class TouchEvent; |
42 } | 35 } |
43 | 36 |
44 namespace aura { | 37 namespace aura { |
45 class TestScreen; | 38 class TestScreen; |
46 class EnvInputStateController; | 39 class EnvInputStateController; |
47 class WindowTargeter; | |
48 class WindowTreeHost; | 40 class WindowTreeHost; |
49 | 41 |
50 namespace test { | 42 namespace test { |
51 class WindowEventDispatcherTestApi; | 43 class WindowEventDispatcherTestApi; |
52 } | 44 } |
53 | 45 |
54 // WindowEventDispatcher orchestrates event dispatch within a window tree | 46 // WindowEventDispatcher orchestrates event dispatch within a window tree |
55 // owned by WindowTreeHost. WTH also owns the WED. | 47 // owned by WindowTreeHost. WTH also owns the WED. |
56 // TODO(beng): In progress, remove functionality not directly related to | 48 // TODO(beng): In progress, remove functionality not directly related to |
57 // event dispatch. | 49 // event dispatch. |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 263 |
272 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 264 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
273 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | 265 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
274 | 266 |
275 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 267 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
276 }; | 268 }; |
277 | 269 |
278 } // namespace aura | 270 } // namespace aura |
279 | 271 |
280 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 272 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
OLD | NEW |