Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1182)

Side by Side Diff: cc/pinch_zoom_scrollbar_painter.h

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate device scale factor, default to 0 totalSize when no root scroll layer. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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.
4
5 #ifndef CC_PINCH_ZOOM_SCROLLBAR_PAINTER_H_
6 #define CC_PINCH_ZOOM_SCROLLBAR_PAINTER_H_
7
8 #include "base/compiler_specific.h"
9 #include "cc/scrollbar_theme_painter.h"
10
11 namespace cc {
12
13 class PinchZoomScrollbarPainter : public ScrollbarThemePainter {
14 public:
15 PinchZoomScrollbarPainter() {}
16 virtual ~PinchZoomScrollbarPainter();
17
18 virtual void PaintScrollbarBackground(
19 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
20 virtual void PaintTrackBackground(
21 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
22 virtual void PaintBackTrackPart(
23 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
24 virtual void PaintForwardTrackPart(
25 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
26 virtual void PaintBackButtonStart(
27 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
28 virtual void PaintBackButtonEnd(
29 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
30 virtual void PaintForwardButtonStart(
31 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
32 virtual void PaintForwardButtonEnd(
33 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
34 virtual void PaintTickmarks(
35 SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
36 virtual void PaintThumb(SkCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
37 };
38
39 } // namespace cc
40
41 #endif // CC_PINCH_ZOOM_SCROLLBAR_PAINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698