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

Side by Side Diff: content/renderer/input/input_handler_wrapper.cc

Issue 304793003: use enum to specify deviceSource for fling animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased for parallel breaking changes 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/renderer/input/input_handler_wrapper.h" 5 #include "content/renderer/input/input_handler_wrapper.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "content/renderer/input/input_event_filter.h" 8 #include "content/renderer/input/input_event_filter.h"
9 #include "content/renderer/input/input_handler_manager.h" 9 #include "content/renderer/input/input_handler_manager.h"
10 #include "third_party/WebKit/public/platform/Platform.h" 10 #include "third_party/WebKit/public/platform/Platform.h"
(...skipping 24 matching lines...) Expand all
35 base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, 35 base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation,
36 render_view_impl_, 36 render_view_impl_,
37 params)); 37 params));
38 } 38 }
39 39
40 void InputHandlerWrapper::WillShutdown() { 40 void InputHandlerWrapper::WillShutdown() {
41 input_handler_manager_->RemoveInputHandler(routing_id_); 41 input_handler_manager_->RemoveInputHandler(routing_id_);
42 } 42 }
43 43
44 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( 44 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve(
45 int deviceSource, 45 blink::WebGestureDevice deviceSource,
46 const blink::WebFloatPoint& velocity, 46 const blink::WebFloatPoint& velocity,
47 const blink::WebSize& cumulative_scroll) { 47 const blink::WebSize& cumulative_scroll) {
48 return blink::Platform::current()->createFlingAnimationCurve( 48 return blink::Platform::current()->createFlingAnimationCurve(
49 deviceSource, velocity, cumulative_scroll); 49 deviceSource, velocity, cumulative_scroll);
50 } 50 }
51 51
52 void InputHandlerWrapper::DidOverscroll(const DidOverscrollParams& params) { 52 void InputHandlerWrapper::DidOverscroll(const DidOverscrollParams& params) {
53 input_handler_manager_->DidOverscroll(routing_id_, params); 53 input_handler_manager_->DidOverscroll(routing_id_, params);
54 } 54 }
55 55
56 void InputHandlerWrapper::DidStopFlinging() { 56 void InputHandlerWrapper::DidStopFlinging() {
57 input_handler_manager_->DidStopFlinging(routing_id_); 57 input_handler_manager_->DidStopFlinging(routing_id_);
58 } 58 }
59 59
60 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_wrapper.h ('k') | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698