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

Side by Side Diff: content/browser/renderer_host/input/passthrough_touch_event_queue.h

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_
7 7
8 #include "content/browser/renderer_host/input/touch_event_queue.h" 8 #include "content/browser/renderer_host/input/touch_event_queue.h"
9 9
10 #include <set> 10 #include <set>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool IsPendingAckTouchStart() const override; 48 bool IsPendingAckTouchStart() const override;
49 49
50 void SetAckTimeoutEnabled(bool enabled) override; 50 void SetAckTimeoutEnabled(bool enabled) override;
51 51
52 void SetIsMobileOptimizedSite(bool mobile_optimized_site) override; 52 void SetIsMobileOptimizedSite(bool mobile_optimized_site) override;
53 53
54 bool IsAckTimeoutEnabled() const override; 54 bool IsAckTimeoutEnabled() const override;
55 55
56 bool Empty() const override; 56 bool Empty() const override;
57 57
58 bool SendTouchEventsAsync() const override;
59
58 protected: 60 protected:
59 void SendTouchCancelEventForTouchEvent( 61 void SendTouchCancelEventForTouchEvent(
60 const TouchEventWithLatencyInfo& event_to_cancel) override; 62 const TouchEventWithLatencyInfo& event_to_cancel) override;
61 void UpdateTouchConsumerStates(const blink::WebTouchEvent& event, 63 void UpdateTouchConsumerStates(const blink::WebTouchEvent& event,
62 InputEventAckState ack_result) override; 64 InputEventAckState ack_result) override;
63 // Empties the queue of touch events. This may result in any number of gesture 65 // Empties the queue of touch events. This may result in any number of gesture
64 // events being sent to the renderer. 66 // events being sent to the renderer.
65 void FlushQueue() override; 67 void FlushQueue() override;
66 68
67 private: 69 private:
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // not yet been ack'd by the renderer. The set is explicitly ordered based 137 // not yet been ack'd by the renderer. The set is explicitly ordered based
136 // on the unique touch event id. 138 // on the unique touch event id.
137 std::set<TouchEventWithLatencyInfoAndAckState> outstanding_touches_; 139 std::set<TouchEventWithLatencyInfoAndAckState> outstanding_touches_;
138 140
139 DISALLOW_COPY_AND_ASSIGN(PassthroughTouchEventQueue); 141 DISALLOW_COPY_AND_ASSIGN(PassthroughTouchEventQueue);
140 }; 142 };
141 143
142 } // namespace content 144 } // namespace content
143 145
144 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_ 146 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_PASSTHROUGH_TOUCH_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698