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

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

Issue 1861733002: Add touch drag UMA latency metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually fix tests. Created 4 years, 8 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_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 <queue> 10 #include <queue>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const MouseWheelEventWithLatencyInfo& touch_event) override; 106 const MouseWheelEventWithLatencyInfo& touch_event) override;
107 void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event, 107 void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event,
108 InputEventAckState ack_result) override; 108 InputEventAckState ack_result) override;
109 109
110 bool SendMoveCaret(scoped_ptr<IPC::Message> message); 110 bool SendMoveCaret(scoped_ptr<IPC::Message> message);
111 bool SendSelectMessage(scoped_ptr<IPC::Message> message); 111 bool SendSelectMessage(scoped_ptr<IPC::Message> message);
112 bool Send(IPC::Message* message); 112 bool Send(IPC::Message* message);
113 113
114 // Filters and forwards |input_event| to the appropriate handler. 114 // Filters and forwards |input_event| to the appropriate handler.
115 void FilterAndSendWebInputEvent(const blink::WebInputEvent& input_event, 115 void FilterAndSendWebInputEvent(const blink::WebInputEvent& input_event,
116 const ui::LatencyInfo& latency_info); 116 ui::LatencyInfo* latency_info);
117 117
118 // Utility routine for filtering and forwarding |input_event| to the 118 // Utility routine for filtering and forwarding |input_event| to the
119 // appropriate handler. |input_event| will be offered to the overscroll 119 // appropriate handler. |input_event| will be offered to the overscroll
120 // controller, client and renderer, in that order. 120 // controller, client and renderer, in that order.
121 void OfferToHandlers(const blink::WebInputEvent& input_event, 121 void OfferToHandlers(const blink::WebInputEvent& input_event,
122 const ui::LatencyInfo& latency_info); 122 ui::LatencyInfo* latency_info);
123 123
124 // Returns true if |input_event| was consumed by the client. 124 // Returns true if |input_event| was consumed by the client.
125 bool OfferToClient(const blink::WebInputEvent& input_event, 125 bool OfferToClient(const blink::WebInputEvent& input_event,
126 const ui::LatencyInfo& latency_info); 126 const ui::LatencyInfo& latency_info);
127 127
128 // Returns true if |input_event| was successfully sent to the renderer 128 // Returns true if |input_event| was successfully sent to the renderer
129 // as an async IPC Message. 129 // as an async IPC Message.
130 bool OfferToRenderer(const blink::WebInputEvent& input_event, 130 bool OfferToRenderer(const blink::WebInputEvent& input_event,
131 const ui::LatencyInfo& latency_info, 131 InputEventDispatchType dispatch_type,
132 InputEventDispatchType dispatch_type); 132 ui::LatencyInfo* latency_info);
133 133
134 // IPC message handlers 134 // IPC message handlers
135 void OnInputEventAck(const InputEventAck& ack); 135 void OnInputEventAck(const InputEventAck& ack);
136 void OnDidOverscroll(const DidOverscrollParams& params); 136 void OnDidOverscroll(const DidOverscrollParams& params);
137 void OnMsgMoveCaretAck(); 137 void OnMsgMoveCaretAck();
138 void OnSelectMessageAck(); 138 void OnSelectMessageAck();
139 void OnHasTouchEventHandlers(bool has_handlers); 139 void OnHasTouchEventHandlers(bool has_handlers);
140 void OnSetTouchAction(TouchAction touch_action); 140 void OnSetTouchAction(TouchAction touch_action);
141 void OnDidStopFlinging(); 141 void OnDidStopFlinging();
142 142
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698