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

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

Issue 25022003: Report LatencyInfo through trace buffer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 2 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
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_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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void ProcessInputEventAck(WebKit::WebInputEvent::Type event_type, 111 void ProcessInputEventAck(WebKit::WebInputEvent::Type event_type,
112 InputEventAckState ack_result, 112 InputEventAckState ack_result,
113 const ui::LatencyInfo& latency_info); 113 const ui::LatencyInfo& latency_info);
114 114
115 // Called by ProcessInputEventAck() to process a keyboard event ack message. 115 // Called by ProcessInputEventAck() to process a keyboard event ack message.
116 void ProcessKeyboardAck(int type, InputEventAckState ack_result); 116 void ProcessKeyboardAck(int type, InputEventAckState ack_result);
117 117
118 // Called by ProcessInputEventAck() to process a wheel event ack message. 118 // Called by ProcessInputEventAck() to process a wheel event ack message.
119 // This could result in a task being posted to allow additional wheel 119 // This could result in a task being posted to allow additional wheel
120 // input messages to be coalesced. 120 // input messages to be coalesced.
121 void ProcessWheelAck(InputEventAckState ack_result); 121 void ProcessWheelAck(InputEventAckState ack_result,
122 const ui::LatencyInfo& latency_info);
122 123
123 // Called by ProcessInputEventAck() to process a gesture event ack message. 124 // Called by ProcessInputEventAck() to process a gesture event ack message.
124 // This validates the gesture for suppression of touchpad taps and sends one 125 // This validates the gesture for suppression of touchpad taps and sends one
125 // previously queued coalesced gesture if it exists. 126 // previously queued coalesced gesture if it exists.
126 void ProcessGestureAck(int type, InputEventAckState ack_result); 127 void ProcessGestureAck(int type,
128 InputEventAckState ack_result,
129 const ui::LatencyInfo& latency);
127 130
128 // Called on ProcessInputEventAck() to process a touch event ack message. 131 // Called on ProcessInputEventAck() to process a touch event ack message.
129 // This can result in a gesture event being generated and sent back to the 132 // This can result in a gesture event being generated and sent back to the
130 // renderer. 133 // renderer.
131 void ProcessTouchAck(InputEventAckState ack_result, 134 void ProcessTouchAck(InputEventAckState ack_result,
132 const ui::LatencyInfo& latency_info); 135 const ui::LatencyInfo& latency_info);
133 136
134 void HandleGestureScroll( 137 void HandleGestureScroll(
135 const GestureEventWithLatencyInfo& gesture_event); 138 const GestureEventWithLatencyInfo& gesture_event);
136 139
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 203
201 scoped_ptr<TouchEventQueue> touch_event_queue_; 204 scoped_ptr<TouchEventQueue> touch_event_queue_;
202 scoped_ptr<GestureEventFilter> gesture_event_filter_; 205 scoped_ptr<GestureEventFilter> gesture_event_filter_;
203 206
204 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); 207 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter);
205 }; 208 };
206 209
207 } // namespace content 210 } // namespace content
208 211
209 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ 212 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698