| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 ~NullInputRouterClient() override {} | 78 ~NullInputRouterClient() override {} |
| 79 | 79 |
| 80 // InputRouterClient | 80 // InputRouterClient |
| 81 InputEventAckState FilterInputEvent( | 81 InputEventAckState FilterInputEvent( |
| 82 const blink::WebInputEvent& input_event, | 82 const blink::WebInputEvent& input_event, |
| 83 const ui::LatencyInfo& latency_info) override { | 83 const ui::LatencyInfo& latency_info) override { |
| 84 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 84 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
| 85 } | 85 } |
| 86 void IncrementInFlightEventCount( | 86 void IncrementInFlightEventCount( |
| 87 blink::WebInputEvent::Type event_type) override {} | 87 blink::WebInputEvent::Type event_type) override {} |
| 88 void DecrementInFlightEventCount() override {} | 88 void DecrementInFlightEventCount(InputEventAckLocation location) override {} |
| 89 void OnHasTouchEventHandlers(bool has_handlers) override {} | 89 void OnHasTouchEventHandlers(bool has_handlers) override {} |
| 90 void DidFlush() override {} | 90 void DidFlush() override {} |
| 91 void DidOverscroll(const ui::DidOverscrollParams& params) override {} | 91 void DidOverscroll(const ui::DidOverscrollParams& params) override {} |
| 92 void DidStopFlinging() override {} | 92 void DidStopFlinging() override {} |
| 93 void ForwardGestureEventWithLatencyInfo( | 93 void ForwardGestureEventWithLatencyInfo( |
| 94 const blink::WebGestureEvent& event, | 94 const blink::WebGestureEvent& event, |
| 95 const ui::LatencyInfo& latency_info) override {} | 95 const ui::LatencyInfo& latency_info) override {} |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 class NullIPCSender : public IPC::Sender { | 98 class NullIPCSender : public IPC::Sender { |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { | 386 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { |
| 387 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", | 387 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", |
| 388 kDefaultSteps, | 388 kDefaultSteps, |
| 389 kDefaultOrigin, | 389 kDefaultOrigin, |
| 390 kDefaultDistance, | 390 kDefaultDistance, |
| 391 kDefaultIterations); | 391 kDefaultIterations); |
| 392 } | 392 } |
| 393 | 393 |
| 394 } // namespace content | 394 } // namespace content |
| OLD | NEW |