| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |