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

Side by Side Diff: webkit/support/web_gesture_curve_mock.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_SUPPORT_WEB_GESTURE_CURVE_MOCK_H_
6 #define WEBKIT_SUPPORT_WEB_GESTURE_CURVE_MOCK_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
10 #include "third_party/WebKit/public/platform/WebGestureCurve.h"
11 #include "third_party/WebKit/public/platform/WebSize.h"
12
13 // A simple class for mocking a WebGestureCurve. The curve flings at velocity
14 // indefinitely.
15 class WebGestureCurveMock : public WebKit::WebGestureCurve {
16 public:
17 WebGestureCurveMock(const WebKit::WebFloatPoint& velocity,
18 const WebKit::WebSize& cumulative_scroll);
19 virtual ~WebGestureCurveMock();
20
21 // Returns false if curve has finished and can no longer be applied.
22 virtual bool apply(double time,
23 WebKit::WebGestureCurveTarget* target) OVERRIDE;
24
25 private:
26 WebKit::WebFloatPoint velocity_;
27 WebKit::WebSize cumulative_scroll_;
28
29 DISALLOW_COPY_AND_ASSIGN(WebGestureCurveMock);
30 };
31
32 #endif // WEBKIT_SUPPORT_WEB_GESTURE_CURVE_MOCK_H_
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.cc ('k') | webkit/support/web_gesture_curve_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698