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

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

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: Fix MSAN Use-of-uninitialized-value: Initialize GestureEventDetails 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 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_EVENTS_GESTURE_DETECTION_UI_GESTURE_PROVIDER_H_ 5 #ifndef UI_EVENTS_GESTURE_DETECTION_UI_GESTURE_PROVIDER_H_
6 #define UI_EVENTS_GESTURE_DETECTION_UI_GESTURE_PROVIDER_H_ 6 #define UI_EVENTS_GESTURE_DETECTION_UI_GESTURE_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 public: 35 public:
36 GestureProviderAura(GestureConsumer* consumer, 36 GestureProviderAura(GestureConsumer* consumer,
37 GestureProviderAuraClient* client); 37 GestureProviderAuraClient* client);
38 ~GestureProviderAura() override; 38 ~GestureProviderAura() override;
39 39
40 void set_gesture_consumer(GestureConsumer* consumer) { 40 void set_gesture_consumer(GestureConsumer* consumer) {
41 gesture_consumer_ = consumer; 41 gesture_consumer_ = consumer;
42 } 42 }
43 43
44 bool OnTouchEvent(TouchEvent* event); 44 bool OnTouchEvent(TouchEvent* event);
45 void OnTouchEventAck(uint32_t unique_touch_event_id, bool event_consumed); 45 void OnTouchEventAck(uint32_t unique_touch_event_id,
46 bool event_consumed,
47 bool is_source_touch_event_set_non_blocking);
46 const MotionEventAura& pointer_state() { return pointer_state_; } 48 const MotionEventAura& pointer_state() { return pointer_state_; }
47 std::vector<std::unique_ptr<GestureEvent>> GetAndResetPendingGestures(); 49 std::vector<std::unique_ptr<GestureEvent>> GetAndResetPendingGestures();
48 void OnTouchEnter(int pointer_id, float x, float y); 50 void OnTouchEnter(int pointer_id, float x, float y);
49 51
50 // GestureProviderClient implementation 52 // GestureProviderClient implementation
51 void OnGestureEvent(const GestureEventData& gesture) override; 53 void OnGestureEvent(const GestureEventData& gesture) override;
52 54
53 private: 55 private:
54 GestureProviderAuraClient* client_; 56 GestureProviderAuraClient* client_;
55 MotionEventAura pointer_state_; 57 MotionEventAura pointer_state_;
56 FilteredGestureProvider filtered_gesture_provider_; 58 FilteredGestureProvider filtered_gesture_provider_;
57 59
58 bool handling_event_; 60 bool handling_event_;
59 std::vector<std::unique_ptr<GestureEvent>> pending_gestures_; 61 std::vector<std::unique_ptr<GestureEvent>> pending_gestures_;
60 62
61 // |gesture_consumer_| must outlive this object. 63 // |gesture_consumer_| must outlive this object.
62 GestureConsumer* gesture_consumer_; 64 GestureConsumer* gesture_consumer_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(GestureProviderAura); 66 DISALLOW_COPY_AND_ASSIGN(GestureProviderAura);
65 }; 67 };
66 68
67 } // namespace ui 69 } // namespace ui
68 70
69 #endif // UI_EVENTS_GESTURE_DETECTION_UI_GESTURE_PROVIDER_H_ 71 #endif // UI_EVENTS_GESTURE_DETECTION_UI_GESTURE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698