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

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

Issue 2884953002: Fix Mouse Event Tracing (requires making some events blocking.) (Closed)
Patch Set: Disable test on Android, as mouse input isn't supported. Created 3 years, 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698