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

Side by Side Diff: content/browser/renderer_host/input/input_router_impl_perftest.cc

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/renderer_host/input/input_ack_handler.h" 10 #include "content/browser/renderer_host/input/input_ack_handler.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 public: 74 public:
75 NullInputRouterClient() {} 75 NullInputRouterClient() {}
76 ~NullInputRouterClient() override {} 76 ~NullInputRouterClient() override {}
77 77
78 // InputRouterClient 78 // InputRouterClient
79 InputEventAckState FilterInputEvent( 79 InputEventAckState FilterInputEvent(
80 const blink::WebInputEvent& input_event, 80 const blink::WebInputEvent& input_event,
81 const ui::LatencyInfo& latency_info) override { 81 const ui::LatencyInfo& latency_info) override {
82 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 82 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
83 } 83 }
84 void OnForwardEventToRenderer(
85 const blink::WebInputEvent& event,
86 ui::LatencyInfo* latency) override {
87 }
88
84 void IncrementInFlightEventCount() override {} 89 void IncrementInFlightEventCount() override {}
85 void DecrementInFlightEventCount() override {} 90 void DecrementInFlightEventCount() override {}
86 void OnHasTouchEventHandlers(bool has_handlers) override {} 91 void OnHasTouchEventHandlers(bool has_handlers) override {}
87 void DidFlush() override {} 92 void DidFlush() override {}
88 void DidOverscroll(const DidOverscrollParams& params) override {} 93 void DidOverscroll(const DidOverscrollParams& params) override {}
89 void DidStopFlinging() override {} 94 void DidStopFlinging() override {}
90 }; 95 };
91 96
92 class NullIPCSender : public IPC::Sender { 97 class NullIPCSender : public IPC::Sender {
93 public: 98 public:
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 384
380 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { 385 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) {
381 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", 386 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ",
382 kDefaultSteps, 387 kDefaultSteps,
383 kDefaultOrigin, 388 kDefaultOrigin,
384 kDefaultDistance, 389 kDefaultDistance,
385 kDefaultIterations); 390 kDefaultIterations);
386 } 391 }
387 392
388 } // namespace content 393 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698