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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 IPC::Sender* sender_; | 202 IPC::Sender* sender_; |
203 InputRouterClient* client_; | 203 InputRouterClient* client_; |
204 InputAckHandler* ack_handler_; | 204 InputAckHandler* ack_handler_; |
205 int routing_id_; | 205 int routing_id_; |
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 receiving the next select |
213 // message ack. | 213 // message ack. |
214 std::deque<IPC::Message*> pending_select_messages_; | 214 std::deque<std::unique_ptr<IPC::Message>> pending_select_messages_; |
215 | 215 |
216 // 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 // 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 // A queue of the mouse move events sent to the renderer. Similar | 222 // A queue of the mouse move events sent to the renderer. Similar |
223 // to |key_queue_|. | 223 // to |key_queue_|. |
224 typedef std::deque<MouseEventWithLatencyInfo> MouseMoveQueue; | 224 typedef std::deque<MouseEventWithLatencyInfo> MouseMoveQueue; |
(...skipping 30 matching lines...) Expand all Loading... |
255 InputEventStreamValidator output_stream_validator_; | 255 InputEventStreamValidator output_stream_validator_; |
256 | 256 |
257 float device_scale_factor_; | 257 float device_scale_factor_; |
258 | 258 |
259 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 259 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
260 }; | 260 }; |
261 | 261 |
262 } // namespace content | 262 } // namespace content |
263 | 263 |
264 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 264 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
OLD | NEW |