| 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 "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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // InputRouterClient | 75 // InputRouterClient |
| 76 InputEventAckState FilterInputEvent( | 76 InputEventAckState FilterInputEvent( |
| 77 const blink::WebInputEvent& input_event, | 77 const blink::WebInputEvent& input_event, |
| 78 const ui::LatencyInfo& latency_info) override { | 78 const ui::LatencyInfo& latency_info) override { |
| 79 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 79 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
| 80 } | 80 } |
| 81 void IncrementInFlightEventCount() override {} | 81 void IncrementInFlightEventCount() override {} |
| 82 void DecrementInFlightEventCount() override {} | 82 void DecrementInFlightEventCount() override {} |
| 83 void OnHasTouchEventHandlers(bool has_handlers) override {} | 83 void OnHasTouchEventHandlers(bool has_handlers) override {} |
| 84 void DidFlush() override {} | 84 void SetNeedsFlushInput() override {} |
| 85 void DidFlushAllInput() override {} |
| 85 void DidOverscroll(const DidOverscrollParams& params) override {} | 86 void DidOverscroll(const DidOverscrollParams& params) override {} |
| 86 void DidStopFlinging() override {} | 87 void DidStopFlinging() override {} |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 class NullIPCSender : public IPC::Sender { | 90 class NullIPCSender : public IPC::Sender { |
| 90 public: | 91 public: |
| 91 NullIPCSender() : sent_count_(0) {} | 92 NullIPCSender() : sent_count_(0) {} |
| 92 ~NullIPCSender() override {} | 93 ~NullIPCSender() override {} |
| 93 | 94 |
| 94 bool Send(IPC::Message* message) override { | 95 bool Send(IPC::Message* message) override { |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 | 377 |
| 377 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { | 378 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { |
| 378 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", | 379 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", |
| 379 kDefaultSteps, | 380 kDefaultSteps, |
| 380 kDefaultOrigin, | 381 kDefaultOrigin, |
| 381 kDefaultDistance, | 382 kDefaultDistance, |
| 382 kDefaultIterations); | 383 kDefaultIterations); |
| 383 } | 384 } |
| 384 | 385 |
| 385 } // namespace content | 386 } // namespace content |
| OLD | NEW |