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

Unified Diff: ui/events/blink/input_handler_proxy.cc

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/WebFlingAnimator.h ('k') | ui/events/blink/input_handler_proxy_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index 911147a1f3711d6f2c3194c06dbe65a532754199..08052489fee5af62d75b94168ae5c961c9ff27ad 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -993,9 +993,8 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleGestureFlingStart(
const float vy = gesture_event.data.fling_start.velocity_y;
current_fling_velocity_ = gfx::Vector2dF(vx, vy);
DCHECK(!current_fling_velocity_.IsZero());
- fling_curve_.reset(client_->CreateFlingAnimationCurve(
- gesture_event.source_device, WebFloatPoint(vx, vy),
- blink::WebSize()));
+ fling_curve_ = client_->CreateFlingAnimationCurve(
+ gesture_event.source_device, WebFloatPoint(vx, vy), blink::WebSize());
disallow_horizontal_fling_scroll_ = !vx;
disallow_vertical_fling_scroll_ = !vy;
TRACE_EVENT_ASYNC_BEGIN2("input,benchmark,rail",
@@ -1236,8 +1235,8 @@ bool InputHandlerProxy::FilterInputEventForFlingBoosting(
disallow_horizontal_fling_scroll_ = !velocity.x;
disallow_vertical_fling_scroll_ = !velocity.y;
last_fling_boost_event_ = WebGestureEvent();
- fling_curve_.reset(client_->CreateFlingAnimationCurve(
- gesture_event.source_device, velocity, blink::WebSize()));
+ fling_curve_ = client_->CreateFlingAnimationCurve(
+ gesture_event.source_device, velocity, blink::WebSize());
fling_parameters_.start_time = gesture_event.TimeStampSeconds();
fling_parameters_.delta = velocity;
fling_parameters_.point = WebPoint(gesture_event.x, gesture_event.y);
« no previous file with comments | « third_party/WebKit/public/platform/WebFlingAnimator.h ('k') | ui/events/blink/input_handler_proxy_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698