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

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

Issue 2709813002: Remove the touch ack timeout handler out of the legacy touch event queue. (Closed)
Patch Set: Fix nits Created 3 years, 10 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 protected:
116 virtual void SendTouchCancelEventForTouchEvent(
117 const TouchEventWithLatencyInfo& event_to_cancel) = 0;
118
119 // Empties the queue of touch events. This may result in any number of gesture
120 // events being sent to the renderer.
121 virtual void FlushQueue() = 0;
122 virtual void UpdateTouchConsumerStates(const blink::WebTouchEvent& event,
123 InputEventAckState ack_result) = 0;
124
115 private: 125 private:
126 friend class TouchTimeoutHandler;
127
116 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); 128 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
117 }; 129 };
118 130
119 } // namespace content 131 } // namespace content
120 132
121 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 133 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698