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

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

Issue 1922903002: Fix reporting of TouchToFirstScroll latency metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 13 matching lines...) Expand all
24 // InputRouterClient 24 // InputRouterClient
25 InputEventAckState FilterInputEvent( 25 InputEventAckState FilterInputEvent(
26 const blink::WebInputEvent& input_event, 26 const blink::WebInputEvent& input_event,
27 const ui::LatencyInfo& latency_info) override; 27 const ui::LatencyInfo& latency_info) override;
28 void IncrementInFlightEventCount() override; 28 void IncrementInFlightEventCount() override;
29 void DecrementInFlightEventCount() override; 29 void DecrementInFlightEventCount() override;
30 void OnHasTouchEventHandlers(bool has_handlers) override; 30 void OnHasTouchEventHandlers(bool has_handlers) override;
31 void DidFlush() override; 31 void DidFlush() override;
32 void DidOverscroll(const DidOverscrollParams& params) override; 32 void DidOverscroll(const DidOverscrollParams& params) override;
33 void DidStopFlinging() override; 33 void DidStopFlinging() override;
34 void ForwardGestureEvent( 34 void ForwardGestureEventWithLatencyInfo(
35 const blink::WebGestureEvent& gesture_event) override; 35 const blink::WebGestureEvent& gesture_event,
36 const ui::LatencyInfo& latency_info) override;
36 37
37 bool GetAndResetFilterEventCalled(); 38 bool GetAndResetFilterEventCalled();
38 size_t GetAndResetDidFlushCount(); 39 size_t GetAndResetDidFlushCount();
39 DidOverscrollParams GetAndResetOverscroll(); 40 DidOverscrollParams GetAndResetOverscroll();
40 41
41 void set_input_router(InputRouter* input_router) { 42 void set_input_router(InputRouter* input_router) {
42 input_router_ = input_router; 43 input_router_ = input_router;
43 } 44 }
44 45
45 bool has_touch_handler() const { return has_touch_handler_; } 46 bool has_touch_handler() const { return has_touch_handler_; }
(...skipping 21 matching lines...) Expand all
67 scoped_ptr<InputEvent> last_filter_event_; 68 scoped_ptr<InputEvent> last_filter_event_;
68 69
69 size_t did_flush_called_count_; 70 size_t did_flush_called_count_;
70 71
71 DidOverscrollParams overscroll_; 72 DidOverscrollParams overscroll_;
72 }; 73 };
73 74
74 } // namespace content 75 } // namespace content
75 76
76 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ROUTER_CLIENT_H_ 77 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ROUTER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698