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

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

Issue 2785533003: Animated scroll shouldn't consume unhandled scrolls for OOPIFs. (Closed)
Patch Set: Fix Android compile. Created 3 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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void IncrementInFlightEventCount( 88 void IncrementInFlightEventCount(
89 blink::WebInputEvent::Type event_type) override {} 89 blink::WebInputEvent::Type event_type) override {}
90 void DecrementInFlightEventCount(InputEventAckSource ack_source) override {} 90 void DecrementInFlightEventCount(InputEventAckSource ack_source) override {}
91 void OnHasTouchEventHandlers(bool has_handlers) override {} 91 void OnHasTouchEventHandlers(bool has_handlers) override {}
92 void DidFlush() override {} 92 void DidFlush() override {}
93 void DidOverscroll(const ui::DidOverscrollParams& params) override {} 93 void DidOverscroll(const ui::DidOverscrollParams& params) override {}
94 void DidStopFlinging() override {} 94 void DidStopFlinging() override {}
95 void ForwardGestureEventWithLatencyInfo( 95 void ForwardGestureEventWithLatencyInfo(
96 const blink::WebGestureEvent& event, 96 const blink::WebGestureEvent& event,
97 const ui::LatencyInfo& latency_info) override {} 97 const ui::LatencyInfo& latency_info) override {}
98 bool is_in_gesture_scroll(blink::WebGestureDevice device) override {
99 return false;
100 }
98 }; 101 };
99 102
100 class NullIPCSender : public IPC::Sender { 103 class NullIPCSender : public IPC::Sender {
101 public: 104 public:
102 NullIPCSender() : sent_count_(0) {} 105 NullIPCSender() : sent_count_(0) {}
103 ~NullIPCSender() override {} 106 ~NullIPCSender() override {}
104 107
105 bool Send(IPC::Message* message) override { 108 bool Send(IPC::Message* message) override {
106 delete message; 109 delete message;
107 ++sent_count_; 110 ++sent_count_;
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 398
396 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { 399 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) {
397 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", 400 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ",
398 kDefaultSteps, 401 kDefaultSteps,
399 kDefaultOrigin, 402 kDefaultOrigin,
400 kDefaultDistance, 403 kDefaultDistance,
401 kDefaultIterations); 404 kDefaultIterations);
402 } 405 }
403 406
404 } // namespace content 407 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698