summaryrefslogtreecommitdiffstats
path: root/cc/layers/scrollbar_layer_interface.h
blob: e76fc27aeb7f4859c885d09cdded320d6fcbe713 (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
32
33
34
35
// Copyright 2013 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_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_
#define CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_

#include "cc/base/cc_export.h"
#include "cc/input/scrollbar.h"

namespace cc {

class Layer;
class LayerImpl;

class CC_EXPORT ScrollbarLayerInterface {
 public:
  virtual int ScrollLayerId() const = 0;
  virtual void SetScrollLayer(int layer_id) = 0;
  virtual void SetClipLayer(int layer_id) = 0;
  virtual void PushScrollClipPropertiesTo(LayerImpl* layer) = 0;

  virtual ScrollbarOrientation orientation() const = 0;

 protected:
  ScrollbarLayerInterface() {}
  virtual ~ScrollbarLayerInterface() {}

 private:
  DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerInterface);
};

}  // namespace cc

#endif  // CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_