Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: ui/events/gestures/gesture_recognizer.h

Issue 2943883002: Revert of [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_H_ 5 #ifndef UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_H_
6 #define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_H_ 6 #define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 19 matching lines...) Expand all
30 30
31 // Invoked before event dispatch. If the event is invalid given the current 31 // Invoked before event dispatch. If the event is invalid given the current
32 // touch sequence, returns false. 32 // touch sequence, returns false.
33 virtual bool ProcessTouchEventPreDispatch(TouchEvent* event, 33 virtual bool ProcessTouchEventPreDispatch(TouchEvent* event,
34 GestureConsumer* consumer) = 0; 34 GestureConsumer* consumer) = 0;
35 35
36 // Returns a list of zero or more GestureEvents. Acks the gesture packet in 36 // Returns a list of zero or more GestureEvents. Acks the gesture packet in
37 // the queue which matches with unique_event_id. 37 // the queue which matches with unique_event_id.
38 virtual Gestures AckTouchEvent(uint32_t unique_event_id, 38 virtual Gestures AckTouchEvent(uint32_t unique_event_id,
39 ui::EventResult result, 39 ui::EventResult result,
40 bool is_source_touch_event_set_non_blocking,
41 GestureConsumer* consumer) = 0; 40 GestureConsumer* consumer) = 0;
42 41
43 // This is called when the consumer is destroyed. So this should cleanup any 42 // This is called when the consumer is destroyed. So this should cleanup any
44 // internal state maintained for |consumer|. Returns true iff there was 43 // internal state maintained for |consumer|. Returns true iff there was
45 // state relating to |consumer| to clean up. 44 // state relating to |consumer| to clean up.
46 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) = 0; 45 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) = 0;
47 46
48 // Return the window which should handle this TouchEvent, in the case where 47 // Return the window which should handle this TouchEvent, in the case where
49 // the touch is already associated with a target. 48 // the touch is already associated with a target.
50 // Otherwise, returns null. 49 // Otherwise, returns null.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 88
90 // Unsubscribes |helper| from async gesture dispatch. 89 // Unsubscribes |helper| from async gesture dispatch.
91 // Since the GestureRecognizer does not own the |helper|, it is not deleted 90 // Since the GestureRecognizer does not own the |helper|, it is not deleted
92 // and must be cleaned up appropriately by the caller. 91 // and must be cleaned up appropriately by the caller.
93 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) = 0; 92 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) = 0;
94 }; 93 };
95 94
96 } // namespace ui 95 } // namespace ui
97 96
98 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_H_ 97 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « ui/events/gestures/gesture_provider_aura.cc ('k') | ui/events/gestures/gesture_recognizer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698