| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/browser/renderer_host/input/input_ack_handler.h" | 10 #include "content/browser/renderer_host/input/input_ack_handler.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 const blink::WebInputEvent& input_event, | 80 const blink::WebInputEvent& input_event, |
| 81 const ui::LatencyInfo& latency_info) override { | 81 const ui::LatencyInfo& latency_info) override { |
| 82 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 82 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
| 83 } | 83 } |
| 84 void IncrementInFlightEventCount() override {} | 84 void IncrementInFlightEventCount() override {} |
| 85 void DecrementInFlightEventCount() override {} | 85 void DecrementInFlightEventCount() override {} |
| 86 void OnHasTouchEventHandlers(bool has_handlers) override {} | 86 void OnHasTouchEventHandlers(bool has_handlers) override {} |
| 87 void DidFlush() override {} | 87 void DidFlush() override {} |
| 88 void DidOverscroll(const DidOverscrollParams& params) override {} | 88 void DidOverscroll(const DidOverscrollParams& params) override {} |
| 89 void DidStopFlinging() override {} | 89 void DidStopFlinging() override {} |
| 90 void ForwardGestureEvent(const blink::WebGestureEvent& event) override {} |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 class NullIPCSender : public IPC::Sender { | 93 class NullIPCSender : public IPC::Sender { |
| 93 public: | 94 public: |
| 94 NullIPCSender() : sent_count_(0) {} | 95 NullIPCSender() : sent_count_(0) {} |
| 95 ~NullIPCSender() override {} | 96 ~NullIPCSender() override {} |
| 96 | 97 |
| 97 bool Send(IPC::Message* message) override { | 98 bool Send(IPC::Message* message) override { |
| 98 delete message; | 99 delete message; |
| 99 ++sent_count_; | 100 ++sent_count_; |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 380 |
| 380 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { | 381 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { |
| 381 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", | 382 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", |
| 382 kDefaultSteps, | 383 kDefaultSteps, |
| 383 kDefaultOrigin, | 384 kDefaultOrigin, |
| 384 kDefaultDistance, | 385 kDefaultDistance, |
| 385 kDefaultIterations); | 386 kDefaultIterations); |
| 386 } | 387 } |
| 387 | 388 |
| 388 } // namespace content | 389 } // namespace content |
| OLD | NEW |