summaryrefslogtreecommitdiffstats
path: root/cc/scrollbar_layer_impl_base.h
blob: c28c570d3d00379d6a5d2317aa77945abf79853e (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
// 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 CC_SCROLLBAR_LAYER_IMPL_BASE_H_
#define CC_SCROLLBAR_LAYER_IMPL_BASE_H_

#include "cc/cc_export.h"
#include "cc/layer_impl.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h"

namespace cc {

class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
public:
    virtual ~ScrollbarLayerImplBase() { }

    virtual float currentPos() const = 0;
    virtual int totalSize() const = 0;
    virtual int maximum() const = 0;
    virtual WebKit::WebScrollbar::Orientation orientation() const = 0;

protected:
    ScrollbarLayerImplBase(LayerTreeImpl* treeImpl, int id)
        : LayerImpl(treeImpl, id) { }

};

} // namespace cc
#endif // CC_SCROLLBAR_LAYER_IMPL_BASE_H_