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 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // When a touch event is dispatched to a Window, it may want to process the | 86 // When a touch event is dispatched to a Window, it may want to process the |
87 // touch event asynchronously. In such cases, the window should consume the | 87 // touch event asynchronously. In such cases, the window should consume the |
88 // event during the event dispatch. Once the event is properly processed, the | 88 // event during the event dispatch. Once the event is properly processed, the |
89 // window should let the WindowEventDispatcher know about the result of the | 89 // window should let the WindowEventDispatcher know about the result of the |
90 // event processing, so that gesture events can be properly created and | 90 // event processing, so that gesture events can be properly created and |
91 // dispatched. |event|'s location should be in the dispatcher's coordinate | 91 // dispatched. |event|'s location should be in the dispatcher's coordinate |
92 // space, in DIPs. | 92 // space, in DIPs. |
93 virtual void ProcessedTouchEvent(uint32_t unique_event_id, | 93 virtual void ProcessedTouchEvent(uint32_t unique_event_id, |
94 Window* window, | 94 Window* window, |
95 ui::EventResult result, | 95 ui::EventResult result); |
96 bool is_source_touch_event_set_non_blocking); | |
97 | 96 |
98 // These methods are used to defer the processing of mouse/touch events | 97 // These methods are used to defer the processing of mouse/touch events |
99 // related to resize. A client (typically a RenderWidgetHostViewAura) can call | 98 // related to resize. A client (typically a RenderWidgetHostViewAura) can call |
100 // HoldPointerMoves when an resize is initiated and then ReleasePointerMoves | 99 // HoldPointerMoves when an resize is initiated and then ReleasePointerMoves |
101 // once the resize is completed. | 100 // once the resize is completed. |
102 // | 101 // |
103 // More than one hold can be invoked and each hold must be cancelled by a | 102 // More than one hold can be invoked and each hold must be cancelled by a |
104 // release before we resume normal operation. | 103 // release before we resume normal operation. |
105 void HoldPointerMoves(); | 104 void HoldPointerMoves(); |
106 void ReleasePointerMoves(); | 105 void ReleasePointerMoves(); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 282 |
284 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 283 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
285 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | 284 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
286 | 285 |
287 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 286 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
288 }; | 287 }; |
289 | 288 |
290 } // namespace aura | 289 } // namespace aura |
291 | 290 |
292 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 291 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
OLD | NEW |