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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 {} | 79 void OnHasTouchEventHandlers(bool has_handlers) override {} |
80 void DidFlush() override {} | 80 void DidFlush() override {} |
81 void SetNeedsFlush() override {} | |
82 void DidOverscroll(const DidOverscrollParams& params) override {} | 81 void DidOverscroll(const DidOverscrollParams& params) override {} |
| 82 void DidStopFlinging() override {} |
83 }; | 83 }; |
84 | 84 |
85 class NullIPCSender : public IPC::Sender { | 85 class NullIPCSender : public IPC::Sender { |
86 public: | 86 public: |
87 NullIPCSender() : sent_count_(0) {} | 87 NullIPCSender() : sent_count_(0) {} |
88 ~NullIPCSender() override {} | 88 ~NullIPCSender() override {} |
89 | 89 |
90 bool Send(IPC::Message* message) override { | 90 bool Send(IPC::Message* message) override { |
91 delete message; | 91 delete message; |
92 ++sent_count_; | 92 ++sent_count_; |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 | 376 |
377 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { | 377 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { |
378 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", | 378 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", |
379 kDefaultSteps, | 379 kDefaultSteps, |
380 kDefaultOrigin, | 380 kDefaultOrigin, |
381 kDefaultDistance, | 381 kDefaultDistance, |
382 kDefaultIterations); | 382 kDefaultIterations); |
383 } | 383 } |
384 | 384 |
385 } // namespace content | 385 } // namespace content |
OLD | NEW |