diff options
Diffstat (limited to 'chromium/cc/input/scrollbar.h')
-rw-r--r-- | chromium/cc/input/scrollbar.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/chromium/cc/input/scrollbar.h b/chromium/cc/input/scrollbar.h index ab67bce81c0..bd785ff779b 100644 --- a/chromium/cc/input/scrollbar.h +++ b/chromium/cc/input/scrollbar.h @@ -10,13 +10,21 @@ #include "ui/gfx/geometry/point.h" #include "ui/gfx/geometry/rect.h" +static const int kPixelsPerLineStep = 40; + namespace cc { enum ScrollbarOrientation { HORIZONTAL, VERTICAL }; enum ScrollDirection { SCROLL_BACKWARD, SCROLL_FORWARD }; -// For now, TRACK includes everything but the thumb including background and -// buttons. -enum ScrollbarPart { THUMB, TRACK, TICKMARKS }; + +enum ScrollbarPart { + THUMB, + TRACK, + TICKMARKS, + BACK_BUTTON, + FORWARD_BUTTON, + NO_PART +}; class Scrollbar { public: @@ -30,6 +38,8 @@ class Scrollbar { virtual int ThumbThickness() const = 0; virtual int ThumbLength() const = 0; virtual gfx::Rect TrackRect() const = 0; + virtual gfx::Rect BackButtonRect() const = 0; + virtual gfx::Rect ForwardButtonRect() const = 0; virtual float ThumbOpacity() const = 0; virtual bool HasTickmarks() const = 0; virtual bool NeedsPaintPart(ScrollbarPart part) const = 0; |