OLD | NEW |
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // InputRouterClient | 83 // InputRouterClient |
84 InputEventAckState FilterInputEvent( | 84 InputEventAckState FilterInputEvent( |
85 const blink::WebInputEvent& input_event, | 85 const blink::WebInputEvent& input_event, |
86 const ui::LatencyInfo& latency_info) override { | 86 const ui::LatencyInfo& latency_info) override { |
87 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 87 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
88 } | 88 } |
89 void IncrementInFlightEventCount( | 89 void IncrementInFlightEventCount( |
90 blink::WebInputEvent::Type event_type) override {} | 90 blink::WebInputEvent::Type event_type) override {} |
91 void DecrementInFlightEventCount(InputEventAckSource ack_source) override {} | 91 void DecrementInFlightEventCount(InputEventAckSource ack_source) override {} |
92 void OnHasTouchEventHandlers(bool has_handlers) override {} | 92 void OnHasTouchEventHandlers(bool has_handlers) override {} |
93 void DidFlush() override {} | |
94 void DidOverscroll(const ui::DidOverscrollParams& params) override {} | 93 void DidOverscroll(const ui::DidOverscrollParams& params) override {} |
95 void DidStopFlinging() override {} | 94 void DidStopFlinging() override {} |
96 void ForwardGestureEventWithLatencyInfo( | 95 void ForwardGestureEventWithLatencyInfo( |
97 const blink::WebGestureEvent& event, | 96 const blink::WebGestureEvent& event, |
98 const ui::LatencyInfo& latency_info) override {} | 97 const ui::LatencyInfo& latency_info) override {} |
99 }; | 98 }; |
100 | 99 |
101 class NullIPCSender : public IPC::Sender { | 100 class NullIPCSender : public IPC::Sender { |
102 public: | 101 public: |
103 NullIPCSender() : sent_count_(0) {} | 102 NullIPCSender() : sent_count_(0) {} |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 398 |
400 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { | 399 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { |
401 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", | 400 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", |
402 kDefaultSteps, | 401 kDefaultSteps, |
403 kDefaultOrigin, | 402 kDefaultOrigin, |
404 kDefaultDistance, | 403 kDefaultDistance, |
405 kDefaultIterations); | 404 kDefaultIterations); |
406 } | 405 } |
407 | 406 |
408 } // namespace content | 407 } // namespace content |
OLD | NEW |