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

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

Issue 25552003: Enable TouchEvent suppression on scroll for all platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test cleanup Created 7 years, 2 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_IMMEDIATE_INPUT_ROUTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // A queue of keyboard events. We can't trust data from the renderer so we 188 // A queue of keyboard events. We can't trust data from the renderer so we
189 // stuff key events into a queue and pop them out on ACK, feeding our copy 189 // stuff key events into a queue and pop them out on ACK, feeding our copy
190 // back to whatever unhandled handler instead of the returned version. 190 // back to whatever unhandled handler instead of the returned version.
191 KeyQueue key_queue_; 191 KeyQueue key_queue_;
192 192
193 // Keeps track of whether the webpage has any touch event handler. If it does, 193 // Keeps track of whether the webpage has any touch event handler. If it does,
194 // then touch events are sent to the renderer. Otherwise, the touch events are 194 // then touch events are sent to the renderer. Otherwise, the touch events are
195 // not sent to the renderer. 195 // not sent to the renderer.
196 bool has_touch_handler_; 196 bool has_touch_handler_;
197 197
198 // Whether enabling the optimization that sending no touch move events to
199 // renderer while scrolling.
200 bool enable_no_touch_to_renderer_while_scrolling_;
201
202 scoped_ptr<TouchEventQueue> touch_event_queue_; 198 scoped_ptr<TouchEventQueue> touch_event_queue_;
203 scoped_ptr<GestureEventFilter> gesture_event_filter_; 199 scoped_ptr<GestureEventFilter> gesture_event_filter_;
204 200
205 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); 201 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter);
206 }; 202 };
207 203
208 } // namespace content 204 } // namespace content
209 205
210 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ 206 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/renderer_host/input/immediate_input_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698