| 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_INPUT_ROUTER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 int frame_tree_node_id_; | 206 int frame_tree_node_id_; |
| 207 | 207 |
| 208 // (Similar to |mouse_move_pending_|.) True while waiting for SelectRange_ACK | 208 // (Similar to |mouse_move_pending_|.) True while waiting for SelectRange_ACK |
| 209 // or MoveRangeSelectionExtent_ACK. | 209 // or MoveRangeSelectionExtent_ACK. |
| 210 bool select_message_pending_; | 210 bool select_message_pending_; |
| 211 | 211 |
| 212 // Queue of pending select messages to send after receving the next select | 212 // Queue of pending select messages to send after receving the next select |
| 213 // message ack. | 213 // message ack. |
| 214 std::deque<IPC::Message*> pending_select_messages_; | 214 std::deque<IPC::Message*> pending_select_messages_; |
| 215 | 215 |
| 216 // (Similar to |mouse_move_pending_|.) True while waiting for MoveCaret_ACK. | 216 // True while waiting for MoveCaret_ACK. |
| 217 bool move_caret_pending_; | 217 bool move_caret_pending_; |
| 218 | 218 |
| 219 // (Similar to |next_mouse_move_|.) The next MoveCaret to send, if any. | 219 // The next MoveCaret to send, if any. |
| 220 std::unique_ptr<IPC::Message> next_move_caret_; | 220 std::unique_ptr<IPC::Message> next_move_caret_; |
| 221 | 221 |
| 222 // True if a mouse move event was sent to the render view and we are waiting | 222 // A queue of the mouse move events sent to the renderer. Similar |
| 223 // for a corresponding InputHostMsg_HandleInputEvent_ACK message. | 223 // to |key_queue_|. |
| 224 bool mouse_move_pending_; | 224 typedef std::deque<MouseEventWithLatencyInfo> MouseMoveQueue; |
| 225 | 225 MouseMoveQueue mouse_move_queue_; |
| 226 // The next mouse move event to send (only non-null while mouse_move_pending_ | |
| 227 // is true). | |
| 228 std::unique_ptr<MouseEventWithLatencyInfo> next_mouse_move_; | |
| 229 MouseEventWithLatencyInfo current_mouse_move_; | |
| 230 | 226 |
| 231 // A queue of keyboard events. We can't trust data from the renderer so we | 227 // A queue of keyboard events. We can't trust data from the renderer so we |
| 232 // stuff key events into a queue and pop them out on ACK, feeding our copy | 228 // stuff key events into a queue and pop them out on ACK, feeding our copy |
| 233 // back to whatever unhandled handler instead of the returned version. | 229 // back to whatever unhandled handler instead of the returned version. |
| 234 typedef std::deque<NativeWebKeyboardEventWithLatencyInfo> KeyQueue; | 230 typedef std::deque<NativeWebKeyboardEventWithLatencyInfo> KeyQueue; |
| 235 KeyQueue key_queue_; | 231 KeyQueue key_queue_; |
| 236 | 232 |
| 237 // The time when an input event was sent to the client. | 233 // The time when an input event was sent to the client. |
| 238 base::TimeTicks input_event_start_time_; | 234 base::TimeTicks input_event_start_time_; |
| 239 | 235 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 262 InputEventStreamValidator output_stream_validator_; | 258 InputEventStreamValidator output_stream_validator_; |
| 263 | 259 |
| 264 float device_scale_factor_; | 260 float device_scale_factor_; |
| 265 | 261 |
| 266 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 262 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 267 }; | 263 }; |
| 268 | 264 |
| 269 } // namespace content | 265 } // namespace content |
| 270 | 266 |
| 271 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 267 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |