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

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

Issue 660663002: Clear pending events upon main frame navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 1 month 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "content/browser/renderer_host/input/input_ack_handler.h" 7 #include "content/browser/renderer_host/input/input_ack_handler.h"
8 #include "content/browser/renderer_host/input/input_router_client.h" 8 #include "content/browser/renderer_host/input/input_router_client.h"
9 #include "content/browser/renderer_host/input/input_router_impl.h" 9 #include "content/browser/renderer_host/input/input_router_impl.h"
10 #include "content/common/input/web_input_event_traits.h" 10 #include "content/common/input/web_input_event_traits.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ~NullInputRouterClient() override {} 69 ~NullInputRouterClient() override {}
70 70
71 // InputRouterClient 71 // InputRouterClient
72 InputEventAckState FilterInputEvent( 72 InputEventAckState FilterInputEvent(
73 const blink::WebInputEvent& input_event, 73 const blink::WebInputEvent& input_event,
74 const ui::LatencyInfo& latency_info) override { 74 const ui::LatencyInfo& latency_info) override {
75 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 75 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
76 } 76 }
77 void IncrementInFlightEventCount() override {} 77 void IncrementInFlightEventCount() override {}
78 void DecrementInFlightEventCount() override {} 78 void DecrementInFlightEventCount() override {}
79 void OnHasTouchEventHandlers(bool has_handlers) override {}
80 void DidFlush() override {} 79 void DidFlush() override {}
81 void SetNeedsFlush() override {}
82 void DidOverscroll(const DidOverscrollParams& params) override {} 80 void DidOverscroll(const DidOverscrollParams& params) override {}
83 }; 81 };
84 82
85 class NullIPCSender : public IPC::Sender { 83 class NullIPCSender : public IPC::Sender {
86 public: 84 public:
87 NullIPCSender() : sent_count_(0) {} 85 NullIPCSender() : sent_count_(0) {}
88 ~NullIPCSender() override {} 86 ~NullIPCSender() override {}
89 87
90 bool Send(IPC::Message* message) override { 88 bool Send(IPC::Message* message) override {
91 delete message; 89 delete message;
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 376
379 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { 377 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) {
380 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", 378 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ",
381 kDefaultSteps, 379 kDefaultSteps,
382 kDefaultOrigin, 380 kDefaultOrigin,
383 kDefaultDistance, 381 kDefaultDistance,
384 kDefaultIterations); 382 kDefaultIterations);
385 } 383 }
386 384
387 } // namespace content 385 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698