summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_scrollbar_api.h
blob: 042eec8d3ecb8e2f30529579a8bd85c71c8bdd94 (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
// Copyright (c) 2011 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 PPAPI_THUNK_PPB_SCROLLBAR_API_H_
#define PPAPI_THUNK_PPB_SCROLLBAR_API_H_

#include "ppapi/c/dev/ppb_scrollbar_dev.h"

namespace ppapi {
namespace thunk {

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

  virtual uint32_t GetThickness() = 0;
  virtual bool IsOverlay() = 0;
  virtual uint32_t GetValue() = 0;
  virtual void SetValue(uint32_t value) = 0;
  virtual void SetDocumentSize(uint32_t size) = 0;
  virtual void SetTickMarks(const PP_Rect* tick_marks, uint32_t count) = 0;
  virtual void ScrollBy(PP_ScrollBy_Dev unit, int32_t multiplier) = 0;
};

}  // namespace thunk
}  // namespace ppapi

#endif  // PPAPI_THUNK_PPB_SCROLLBAR_API_H_