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

Unified Diff: webkit/support/web_gesture_curve_mock.cc

Issue 23526028: Move source files from webkit/support to content/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 3 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 | « webkit/support/web_gesture_curve_mock.h ('k') | webkit/support/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/web_gesture_curve_mock.cc
diff --git a/webkit/support/web_gesture_curve_mock.cc b/webkit/support/web_gesture_curve_mock.cc
deleted file mode 100644
index a3b49176a7f92b936a1043fc819835ae762999e1..0000000000000000000000000000000000000000
--- a/webkit/support/web_gesture_curve_mock.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "webkit/support/web_gesture_curve_mock.h"
-
-#include "third_party/WebKit/public/platform/WebFloatSize.h"
-#include "third_party/WebKit/public/platform/WebGestureCurveTarget.h"
-#include "webkit/support/weburl_loader_mock_factory.h"
-
-WebGestureCurveMock::WebGestureCurveMock(const WebKit::WebFloatPoint& velocity,
- const WebKit::WebSize& cumulative_scroll)
- : velocity_(velocity),
- cumulative_scroll_(cumulative_scroll) {
-}
-
-WebGestureCurveMock::~WebGestureCurveMock() {
-}
-
-bool WebGestureCurveMock::apply(double time,
- WebKit::WebGestureCurveTarget* target) {
- WebKit::WebSize displacement(velocity_.x * time, velocity_.y * time);
- WebKit::WebFloatSize increment(displacement.width - cumulative_scroll_.width,
- displacement.height - cumulative_scroll_.height);
- cumulative_scroll_ = displacement;
- target->notifyCurrentFlingVelocity(WebKit::WebFloatSize(velocity_.x,
- velocity_.y));
- // scrollBy() could delete this curve if the animation is over, so don't
- // touch any member variables after making that call.
- target->scrollBy(increment);
- return true;
-}
« no previous file with comments | « webkit/support/web_gesture_curve_mock.h ('k') | webkit/support/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698