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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

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
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index dcc3f89626fa2b45d4417168f729fb8acb2cc015..d26cc8052368969c87c1eb4dba8a3e288de2f077 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -700,11 +700,11 @@ WebInputEventResult WebViewImpl::HandleGestureEvent(
fling_source_device_ = event.source_device;
DCHECK_NE(fling_source_device_, kWebGestureDeviceUninitialized);
std::unique_ptr<WebGestureCurve> fling_curve =
- WTF::WrapUnique(Platform::Current()->CreateFlingAnimationCurve(
+ Platform::Current()->CreateFlingAnimationCurve(
event.source_device,
WebFloatPoint(event.data.fling_start.velocity_x,
event.data.fling_start.velocity_y),
- WebSize()));
+ WebSize());
DCHECK(fling_curve);
gesture_animation_ = WebActiveGestureAnimation::CreateAtAnimationStart(
std::move(fling_curve), this);
@@ -1012,9 +1012,9 @@ void WebViewImpl::TransferActiveWheelFlingAnimation(
global_position_on_fling_start_ = parameters.global_point;
fling_modifier_ = parameters.modifiers;
std::unique_ptr<WebGestureCurve> curve =
- WTF::WrapUnique(Platform::Current()->CreateFlingAnimationCurve(
+ Platform::Current()->CreateFlingAnimationCurve(
parameters.source_device, WebFloatPoint(parameters.delta),
- parameters.cumulative_scroll));
+ parameters.cumulative_scroll);
DCHECK(curve);
gesture_animation_ = WebActiveGestureAnimation::CreateWithTimeOffset(
std::move(curve), this, parameters.start_time);

Powered by Google App Engine
This is Rietveld 408576698