summaryrefslogtreecommitdiffstats
path: root/cc/CCGestureCurve.h
blob: a240e20393b7f229089132f3eae27e05edaeee2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 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.

#ifndef CCGestureCurve_h
#define CCGestureCurve_h

namespace WebCore {

class IntPoint;

class CCGestureCurveTarget {
public:
    virtual ~CCGestureCurveTarget() { }

    virtual void scrollBy(const IntPoint&) = 0;
    // FIXME: add interfaces for scroll(), etc.
};

class CCGestureCurve {
public:
    virtual ~CCGestureCurve() { }

    virtual const char* debugName() const = 0;

    virtual bool apply(double monotonicTime, CCGestureCurveTarget*) = 0;
};

} // namespace WebCore

#endif