| 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 <map> | 10 #include <map> |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 std::deque<std::unique_ptr<IPC::Message>> pending_select_messages_; | 223 std::deque<std::unique_ptr<IPC::Message>> pending_select_messages_; |
| 224 | 224 |
| 225 // True while waiting for MoveCaret_ACK. | 225 // True while waiting for MoveCaret_ACK. |
| 226 bool move_caret_pending_; | 226 bool move_caret_pending_; |
| 227 | 227 |
| 228 // The next MoveCaret to send, if any. | 228 // The next MoveCaret to send, if any. |
| 229 std::unique_ptr<IPC::Message> next_move_caret_; | 229 std::unique_ptr<IPC::Message> next_move_caret_; |
| 230 | 230 |
| 231 // A queue of the mouse move events sent to the renderer. Similar | 231 // A queue of the mouse move events sent to the renderer. Similar |
| 232 // to |key_queue_|. | 232 // to |key_queue_|. |
| 233 typedef std::deque<MouseEventWithLatencyInfo> MouseMoveQueue; | 233 typedef std::deque<MouseEventWithLatencyInfo> MouseEventQueue; |
| 234 MouseMoveQueue mouse_move_queue_; | 234 MouseEventQueue mouse_event_queue_; |
| 235 | 235 |
| 236 // A queue of keyboard events. We can't trust data from the renderer so we | 236 // A queue of keyboard events. We can't trust data from the renderer so we |
| 237 // stuff key events into a queue and pop them out on ACK, feeding our copy | 237 // stuff key events into a queue and pop them out on ACK, feeding our copy |
| 238 // back to whatever unhandled handler instead of the returned version. | 238 // back to whatever unhandled handler instead of the returned version. |
| 239 typedef std::deque<NativeWebKeyboardEventWithLatencyInfo> KeyQueue; | 239 typedef std::deque<NativeWebKeyboardEventWithLatencyInfo> KeyQueue; |
| 240 KeyQueue key_queue_; | 240 KeyQueue key_queue_; |
| 241 | 241 |
| 242 // The source of the ack within the scope of |ProcessInputEventAck()|. | 242 // The source of the ack within the scope of |ProcessInputEventAck()|. |
| 243 // Defaults to ACK_SOURCE_NONE. | 243 // Defaults to ACK_SOURCE_NONE. |
| 244 AckSource current_ack_source_; | 244 AckSource current_ack_source_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 268 | 268 |
| 269 // Last touch position relative to screen. Used to compute movementX/Y. | 269 // Last touch position relative to screen. Used to compute movementX/Y. |
| 270 std::map<int, gfx::Point> global_touch_position_; | 270 std::map<int, gfx::Point> global_touch_position_; |
| 271 | 271 |
| 272 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 272 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 } // namespace content | 275 } // namespace content |
| 276 | 276 |
| 277 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 277 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |