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

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

Issue 1847823005: Fix Event Latency Info on generate gesture events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove debugging 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 IncrementInFlightEventCount() override {} 84 void IncrementInFlightEventCount() override {}
85 void DecrementInFlightEventCount() override {} 85 void DecrementInFlightEventCount() override {}
86 void OnHasTouchEventHandlers(bool has_handlers) override {} 86 void OnHasTouchEventHandlers(bool has_handlers) override {}
87 void DidFlush() override {} 87 void DidFlush() override {}
88 void DidOverscroll(const DidOverscrollParams& params) override {} 88 void DidOverscroll(const DidOverscrollParams& params) override {}
89 void DidStopFlinging() override {} 89 void DidStopFlinging() override {}
90 void ForwardGestureEvent(const blink::WebGestureEvent& event) override {}
90 }; 91 };
91 92
92 class NullIPCSender : public IPC::Sender { 93 class NullIPCSender : public IPC::Sender {
93 public: 94 public:
94 NullIPCSender() : sent_count_(0) {} 95 NullIPCSender() : sent_count_(0) {}
95 ~NullIPCSender() override {} 96 ~NullIPCSender() override {}
96 97
97 bool Send(IPC::Message* message) override { 98 bool Send(IPC::Message* message) override {
98 delete message; 99 delete message;
99 ++sent_count_; 100 ++sent_count_;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 380
380 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { 381 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) {
381 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", 382 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ",
382 kDefaultSteps, 383 kDefaultSteps,
383 kDefaultOrigin, 384 kDefaultOrigin,
384 kDefaultDistance, 385 kDefaultDistance,
385 kDefaultIterations); 386 kDefaultIterations);
386 } 387 }
387 388
388 } // namespace content 389 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698