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

Side by Side Diff: content/browser/renderer_host/input/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_TOUCH_EVENT_QUEUE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Sets whether the current site has a mobile friendly viewport. This 105 // Sets whether the current site has a mobile friendly viewport. This
106 // determines which ack timeout delay will be used for *future* touch events. 106 // determines which ack timeout delay will be used for *future* touch events.
107 // The default assumption is that the site is *not* mobile-optimized. 107 // The default assumption is that the site is *not* mobile-optimized.
108 virtual void SetIsMobileOptimizedSite(bool mobile_optimized_site) = 0; 108 virtual void SetIsMobileOptimizedSite(bool mobile_optimized_site) = 0;
109 109
110 // Whether ack timeout behavior is supported and enabled for the current site. 110 // Whether ack timeout behavior is supported and enabled for the current site.
111 virtual bool IsAckTimeoutEnabled() const = 0; 111 virtual bool IsAckTimeoutEnabled() const = 0;
112 112
113 virtual bool Empty() const WARN_UNUSED_RESULT = 0; 113 virtual bool Empty() const WARN_UNUSED_RESULT = 0;
114 114
115 virtual bool SendTouchEventsAsync() const = 0;
116
115 protected: 117 protected:
116 virtual void SendTouchCancelEventForTouchEvent( 118 virtual void SendTouchCancelEventForTouchEvent(
117 const TouchEventWithLatencyInfo& event_to_cancel) = 0; 119 const TouchEventWithLatencyInfo& event_to_cancel) = 0;
118 120
119 // Empties the queue of touch events. This may result in any number of gesture 121 // Empties the queue of touch events. This may result in any number of gesture
120 // events being sent to the renderer. 122 // events being sent to the renderer.
121 virtual void FlushQueue() = 0; 123 virtual void FlushQueue() = 0;
122 virtual void UpdateTouchConsumerStates(const blink::WebTouchEvent& event, 124 virtual void UpdateTouchConsumerStates(const blink::WebTouchEvent& event,
123 InputEventAckState ack_result) = 0; 125 InputEventAckState ack_result) = 0;
124 126
125 private: 127 private:
126 friend class TouchTimeoutHandler; 128 friend class TouchTimeoutHandler;
127 129
128 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); 130 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
129 }; 131 };
130 132
131 } // namespace content 133 } // namespace content
132 134
133 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 135 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698