Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: content/browser/renderer_host/input/input_router_impl_perftest.cc

Issue 291003002: Move OverscrollController to RenderWidgetHostViewAura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK_GE Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // InputRouterClient 71 // InputRouterClient
72 virtual InputEventAckState FilterInputEvent( 72 virtual 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 virtual void IncrementInFlightEventCount() OVERRIDE {} 77 virtual void IncrementInFlightEventCount() OVERRIDE {}
78 virtual void DecrementInFlightEventCount() OVERRIDE {} 78 virtual void DecrementInFlightEventCount() OVERRIDE {}
79 virtual void OnHasTouchEventHandlers(bool has_handlers) OVERRIDE {} 79 virtual void OnHasTouchEventHandlers(bool has_handlers) OVERRIDE {}
80 virtual OverscrollController* GetOverscrollController() const OVERRIDE {
81 return NULL;
82 }
83 virtual void DidFlush() OVERRIDE {} 80 virtual void DidFlush() OVERRIDE {}
84 virtual void SetNeedsFlush() OVERRIDE {} 81 virtual void SetNeedsFlush() OVERRIDE {}
85 virtual void DidOverscroll(const DidOverscrollParams& params) OVERRIDE {} 82 virtual void DidOverscroll(const DidOverscrollParams& params) OVERRIDE {}
86 }; 83 };
87 84
88 class NullIPCSender : public IPC::Sender { 85 class NullIPCSender : public IPC::Sender {
89 public: 86 public:
90 NullIPCSender() : sent_count_(0) {} 87 NullIPCSender() : sent_count_(0) {}
91 virtual ~NullIPCSender() {} 88 virtual ~NullIPCSender() {}
92 89
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 378
382 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { 379 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) {
383 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", 380 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ",
384 kDefaultSteps, 381 kDefaultSteps,
385 kDefaultOrigin, 382 kDefaultOrigin,
386 kDefaultDistance, 383 kDefaultDistance,
387 kDefaultIterations); 384 kDefaultIterations);
388 } 385 }
389 386
390 } // namespace content 387 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698