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

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

Issue 1911963005: Fix reporting of TouchToFirstScroll latency metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a few nits 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 <memory> 10 #include <memory>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void OnTouchEventAck(const TouchEventWithLatencyInfo& event, 93 void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
94 InputEventAckState ack_result) override; 94 InputEventAckState ack_result) override;
95 void OnFilteringTouchEvent( 95 void OnFilteringTouchEvent(
96 const blink::WebTouchEvent& touch_event) override; 96 const blink::WebTouchEvent& touch_event) override;
97 97
98 // GestureEventFilterClient 98 // GestureEventFilterClient
99 void SendGestureEventImmediately( 99 void SendGestureEventImmediately(
100 const GestureEventWithLatencyInfo& gesture_event) override; 100 const GestureEventWithLatencyInfo& gesture_event) override;
101 void OnGestureEventAck(const GestureEventWithLatencyInfo& event, 101 void OnGestureEventAck(const GestureEventWithLatencyInfo& event,
102 InputEventAckState ack_result) override; 102 InputEventAckState ack_result) override;
103 void ForwardGestureEvent(
104 const blink::WebGestureEvent& gesture_event) override;
105 103
106 // MouseWheelEventQueueClient 104 // MouseWheelEventQueueClient
107 void SendMouseWheelEventImmediately( 105 void SendMouseWheelEventImmediately(
108 const MouseWheelEventWithLatencyInfo& touch_event) override; 106 const MouseWheelEventWithLatencyInfo& touch_event) override;
109 void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event, 107 void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event,
110 InputEventAckState ack_result) override; 108 InputEventAckState ack_result) override;
109 void ForwardGestureEventWithLatencyInfo(
110 const blink::WebGestureEvent& gesture_event,
111 const ui::LatencyInfo& latency_info) override;
111 112
112 bool SendMoveCaret(std::unique_ptr<IPC::Message> message); 113 bool SendMoveCaret(std::unique_ptr<IPC::Message> message);
113 bool SendSelectMessage(std::unique_ptr<IPC::Message> message); 114 bool SendSelectMessage(std::unique_ptr<IPC::Message> message);
114 bool Send(IPC::Message* message); 115 bool Send(IPC::Message* message);
115 116
116 // Filters and forwards |input_event| to the appropriate handler. 117 // Filters and forwards |input_event| to the appropriate handler.
117 void FilterAndSendWebInputEvent(const blink::WebInputEvent& input_event, 118 void FilterAndSendWebInputEvent(const blink::WebInputEvent& input_event,
118 const ui::LatencyInfo& latency_info); 119 const ui::LatencyInfo& latency_info);
119 120
120 // Utility routine for filtering and forwarding |input_event| to the 121 // Utility routine for filtering and forwarding |input_event| to the
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 InputEventStreamValidator output_stream_validator_; 258 InputEventStreamValidator output_stream_validator_;
258 259
259 float device_scale_factor_; 260 float device_scale_factor_;
260 261
261 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); 262 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
262 }; 263 };
263 264
264 } // namespace content 265 } // namespace content
265 266
266 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 267 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/input_router_client.h ('k') | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698