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

Side by Side Diff: content/browser/renderer_host/input/mock_input_router_client.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_MOCK_INPUT_ROUTER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ROUTER_CLIENT_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ROUTER_CLIENT_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ROUTER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 // InputRouterClient 25 // InputRouterClient
26 InputEventAckState FilterInputEvent( 26 InputEventAckState FilterInputEvent(
27 const blink::WebInputEvent& input_event, 27 const blink::WebInputEvent& input_event,
28 const ui::LatencyInfo& latency_info) override; 28 const ui::LatencyInfo& latency_info) override;
29 void IncrementInFlightEventCount() override; 29 void IncrementInFlightEventCount() override;
30 void DecrementInFlightEventCount() override; 30 void DecrementInFlightEventCount() override;
31 void OnHasTouchEventHandlers(bool has_handlers) override; 31 void OnHasTouchEventHandlers(bool has_handlers) override;
32 void DidFlush() override; 32 void DidFlush() override;
33 void DidOverscroll(const DidOverscrollParams& params) override; 33 void DidOverscroll(const DidOverscrollParams& params) override;
34 void DidStopFlinging() override; 34 void DidStopFlinging() override;
35 void ForwardGestureEvent( 35 void ForwardGestureEventWithLatencyInfo(
36 const blink::WebGestureEvent& gesture_event) override; 36 const blink::WebGestureEvent& gesture_event,
37 const ui::LatencyInfo& latency_info) override;
37 38
38 bool GetAndResetFilterEventCalled(); 39 bool GetAndResetFilterEventCalled();
39 size_t GetAndResetDidFlushCount(); 40 size_t GetAndResetDidFlushCount();
40 DidOverscrollParams GetAndResetOverscroll(); 41 DidOverscrollParams GetAndResetOverscroll();
41 42
42 void set_input_router(InputRouter* input_router) { 43 void set_input_router(InputRouter* input_router) {
43 input_router_ = input_router; 44 input_router_ = input_router;
44 } 45 }
45 46
46 bool has_touch_handler() const { return has_touch_handler_; } 47 bool has_touch_handler() const { return has_touch_handler_; }
(...skipping 21 matching lines...) Expand all
68 std::unique_ptr<InputEvent> last_filter_event_; 69 std::unique_ptr<InputEvent> last_filter_event_;
69 70
70 size_t did_flush_called_count_; 71 size_t did_flush_called_count_;
71 72
72 DidOverscrollParams overscroll_; 73 DidOverscrollParams overscroll_;
73 }; 74 };
74 75
75 } // namespace content 76 } // namespace content
76 77
77 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ROUTER_CLIENT_H_ 78 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ROUTER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698