blob: 8f3e68d8dcbd63d809b6689fc8f251e18cc09c68 (
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
36
37
38
39
40
41
42
43
44
|
// 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_LAYERS_SCROLLBAR_THEME_PAINTER_H_
#define CC_LAYERS_SCROLLBAR_THEME_PAINTER_H_
#include "cc/base/cc_export.h"
class SkCanvas;
namespace gfx {
class Rect;
}
namespace cc {
class CC_EXPORT ScrollbarThemePainter {
public:
virtual ~ScrollbarThemePainter() {}
virtual void PaintScrollbarBackground(SkCanvas* canvas,
const gfx::Rect& rect) = 0;
virtual void PaintTrackBackground(SkCanvas* canvas,
const gfx::Rect& rect) = 0;
virtual void PaintBackTrackPart(SkCanvas* canvas,
const gfx::Rect& rect) = 0;
virtual void PaintForwardTrackPart(SkCanvas* canvas,
const gfx::Rect& rect) = 0;
virtual void PaintBackButtonStart(SkCanvas* canvas,
const gfx::Rect& rect) = 0;
virtual void PaintBackButtonEnd(SkCanvas* canvas,
const gfx::Rect& rect) = 0;
virtual void PaintForwardButtonStart(SkCanvas* canvas,
const gfx::Rect& rect) = 0;
virtual void PaintForwardButtonEnd(SkCanvas* canvas,
const gfx::Rect& rect) = 0;
virtual void PaintTickmarks(SkCanvas* canvas, const gfx::Rect& rect) = 0;
virtual void PaintThumb(SkCanvas* canvas, const gfx::Rect& rect) = 0;
};
} // namespace cc
#endif // CC_LAYERS_SCROLLBAR_THEME_PAINTER_H_
|