| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |