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

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

Issue 1949993002: Trackpad scrolling could lag on MacOSX (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/gesture_event_queue.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_QUEUE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_QUEUE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_QUEUE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_QUEUE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 void set_debounce_interval_time_ms_for_testing(int interval_ms) { 112 void set_debounce_interval_time_ms_for_testing(int interval_ms) {
113 debounce_interval_ = base::TimeDelta::FromMilliseconds(interval_ms); 113 debounce_interval_ = base::TimeDelta::FromMilliseconds(interval_ms);
114 } 114 }
115 115
116 private: 116 private:
117 friend class GestureEventQueueTest; 117 friend class GestureEventQueueTest;
118 friend class MockRenderWidgetHost; 118 friend class MockRenderWidgetHost;
119 119
120 bool OnScrollBegin(const GestureEventWithLatencyInfo& gesture_event);
121
120 // TODO(mohsen): There are a bunch of ShouldForward.../ShouldDiscard... 122 // TODO(mohsen): There are a bunch of ShouldForward.../ShouldDiscard...
121 // methods that are getting confusing. This should be somehow fixed. Maybe 123 // methods that are getting confusing. This should be somehow fixed. Maybe
122 // while refactoring GEQ: http://crbug.com/148443. 124 // while refactoring GEQ: http://crbug.com/148443.
123 125
124 // Inovked on the expiration of the debounce interval to release 126 // Inovked on the expiration of the debounce interval to release
125 // deferred events. 127 // deferred events.
126 void SendScrollEndingEventsNow(); 128 void SendScrollEndingEventsNow();
127 129
128 // Returns |true| if the given GestureFlingCancel should be discarded 130 // Returns |true| if the given GestureFlingCancel should be discarded
129 // as unnecessary. 131 // as unnecessary.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Time window in which to debounce scroll/fling ends. Note that an interval 204 // Time window in which to debounce scroll/fling ends. Note that an interval
203 // of zero effectively disables debouncing. 205 // of zero effectively disables debouncing.
204 base::TimeDelta debounce_interval_; 206 base::TimeDelta debounce_interval_;
205 207
206 DISALLOW_COPY_AND_ASSIGN(GestureEventQueue); 208 DISALLOW_COPY_AND_ASSIGN(GestureEventQueue);
207 }; 209 };
208 210
209 } // namespace content 211 } // namespace content
210 212
211 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_QUEUE_H_ 213 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_QUEUE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/gesture_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698