1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "cc/test/fake_scrollbar_theme_painter.h"
6 #include "third_party/skia/include/core/SkCanvas.h"
7 #include "ui/gfx/rect.h"
11 void FakeScrollbarThemePainter::PaintScrollbarBackground(
12 SkCanvas
* canvas
, gfx::Rect rect
) {
16 void FakeScrollbarThemePainter::PaintTrackBackground(
17 SkCanvas
* canvas
, gfx::Rect rect
) {
21 void FakeScrollbarThemePainter::PaintBackTrackPart(
22 SkCanvas
* canvas
, gfx::Rect rect
) {
26 void FakeScrollbarThemePainter::PaintForwardTrackPart(
27 SkCanvas
* canvas
, gfx::Rect rect
) {
31 void FakeScrollbarThemePainter::PaintBackButtonStart(
32 SkCanvas
* canvas
, gfx::Rect rect
) {
36 void FakeScrollbarThemePainter::PaintBackButtonEnd(
37 SkCanvas
* canvas
, gfx::Rect rect
) {
41 void FakeScrollbarThemePainter::PaintForwardButtonStart(
42 SkCanvas
* canvas
, gfx::Rect rect
) {
46 void FakeScrollbarThemePainter::PaintForwardButtonEnd(
47 SkCanvas
* canvas
, gfx::Rect rect
) {
51 void FakeScrollbarThemePainter::PaintTickmarks(
52 SkCanvas
* canvas
, gfx::Rect rect
) {
56 void FakeScrollbarThemePainter::PaintThumb(
57 SkCanvas
* canvas
, gfx::Rect rect
) {
61 void FakeScrollbarThemePainter::Paint(SkCanvas
* canvas
, gfx::Rect rect
) {
64 // Fill the scrollbar with a different color each time.
66 canvas
->clear(SK_ColorBLACK
| fill_color_
);