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

Side by Side Diff: content/browser/renderer_host/input/legacy_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LEGACY_TOUCH_EVENT_QUEUE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_LEGACY_TOUCH_EVENT_QUEUE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_LEGACY_TOUCH_EVENT_QUEUE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_LEGACY_TOUCH_EVENT_QUEUE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Sets whether the current site has a mobile friendly viewport. This 78 // Sets whether the current site has a mobile friendly viewport. This
79 // determines which ack timeout delay will be used for *future* touch events. 79 // determines which ack timeout delay will be used for *future* touch events.
80 // The default assumption is that the site is *not* mobile-optimized. 80 // The default assumption is that the site is *not* mobile-optimized.
81 void SetIsMobileOptimizedSite(bool mobile_optimized_site) override; 81 void SetIsMobileOptimizedSite(bool mobile_optimized_site) override;
82 82
83 // Whether ack timeout behavior is supported and enabled for the current site. 83 // Whether ack timeout behavior is supported and enabled for the current site.
84 bool IsAckTimeoutEnabled() const override; 84 bool IsAckTimeoutEnabled() const override;
85 85
86 bool Empty() const override; 86 bool Empty() const override;
87 87
88 bool SendTouchEventsAsync() const override;
89
88 bool empty() const WARN_UNUSED_RESULT { return Empty(); } 90 bool empty() const WARN_UNUSED_RESULT { return Empty(); }
89 91
90 size_t size() const { return touch_queue_.size(); } 92 size_t size() const { return touch_queue_.size(); }
91 93
92 bool has_handlers() const { return has_handlers_; } 94 bool has_handlers() const { return has_handlers_; }
93 95
94 size_t uncancelable_touch_moves_pending_ack_count() const { 96 size_t uncancelable_touch_moves_pending_ack_count() const {
95 return ack_pending_async_touchmove_ids_.size(); 97 return ack_pending_async_touchmove_ids_.size();
96 } 98 }
97 99
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 203
202 // Event is saved to compare pointer positions for new touchmove events. 204 // Event is saved to compare pointer positions for new touchmove events.
203 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_; 205 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_;
204 206
205 DISALLOW_COPY_AND_ASSIGN(LegacyTouchEventQueue); 207 DISALLOW_COPY_AND_ASSIGN(LegacyTouchEventQueue);
206 }; 208 };
207 209
208 } // namespace content 210 } // namespace content
209 211
210 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_LEGACY_TOUCH_EVENT_QUEUE_H_ 212 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_LEGACY_TOUCH_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698