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

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

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 years, 7 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 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "content/public/common/content_features.h" 9 #include "content/public/common/content_features.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ui::WebScopedInputEvent event, 54 ui::WebScopedInputEvent event,
55 const ui::LatencyInfo& latency_info) { 55 const ui::LatencyInfo& latency_info) {
56 input_handler_manager_->DispatchNonBlockingEventToMainThread( 56 input_handler_manager_->DispatchNonBlockingEventToMainThread(
57 routing_id_, std::move(event), latency_info); 57 routing_id_, std::move(event), latency_info);
58 } 58 }
59 59
60 void InputHandlerWrapper::WillShutdown() { 60 void InputHandlerWrapper::WillShutdown() {
61 input_handler_manager_->RemoveInputHandler(routing_id_); 61 input_handler_manager_->RemoveInputHandler(routing_id_);
62 } 62 }
63 63
64 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( 64 std::unique_ptr<blink::WebGestureCurve>
65 InputHandlerWrapper::CreateFlingAnimationCurve(
65 blink::WebGestureDevice deviceSource, 66 blink::WebGestureDevice deviceSource,
66 const blink::WebFloatPoint& velocity, 67 const blink::WebFloatPoint& velocity,
67 const blink::WebSize& cumulative_scroll) { 68 const blink::WebSize& cumulative_scroll) {
68 return blink::Platform::Current()->CreateFlingAnimationCurve( 69 return blink::Platform::Current()->CreateFlingAnimationCurve(
69 deviceSource, velocity, cumulative_scroll); 70 deviceSource, velocity, cumulative_scroll);
70 } 71 }
71 72
72 void InputHandlerWrapper::DidOverscroll( 73 void InputHandlerWrapper::DidOverscroll(
73 const gfx::Vector2dF& accumulated_overscroll, 74 const gfx::Vector2dF& accumulated_overscroll,
74 const gfx::Vector2dF& latest_overscroll_delta, 75 const gfx::Vector2dF& latest_overscroll_delta,
75 const gfx::Vector2dF& current_fling_velocity, 76 const gfx::Vector2dF& current_fling_velocity,
76 const gfx::PointF& causal_event_viewport_point) { 77 const gfx::PointF& causal_event_viewport_point) {
77 ui::DidOverscrollParams params; 78 ui::DidOverscrollParams params;
78 params.accumulated_overscroll = accumulated_overscroll; 79 params.accumulated_overscroll = accumulated_overscroll;
79 params.latest_overscroll_delta = latest_overscroll_delta; 80 params.latest_overscroll_delta = latest_overscroll_delta;
80 params.current_fling_velocity = current_fling_velocity; 81 params.current_fling_velocity = current_fling_velocity;
81 params.causal_event_viewport_point = causal_event_viewport_point; 82 params.causal_event_viewport_point = causal_event_viewport_point;
82 input_handler_manager_->DidOverscroll(routing_id_, params); 83 input_handler_manager_->DidOverscroll(routing_id_, params);
83 } 84 }
84 85
85 void InputHandlerWrapper::DidStopFlinging() { 86 void InputHandlerWrapper::DidStopFlinging() {
86 input_handler_manager_->DidStopFlinging(routing_id_); 87 input_handler_manager_->DidStopFlinging(routing_id_);
87 } 88 }
88 89
89 void InputHandlerWrapper::DidAnimateForInput() { 90 void InputHandlerWrapper::DidAnimateForInput() {
90 input_handler_manager_->DidAnimateForInput(); 91 input_handler_manager_->DidAnimateForInput();
91 } 92 }
92 93
93 } // namespace content 94 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_wrapper.h ('k') | content/renderer/media/renderer_webaudiodevice_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698