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

Side by Side Diff: cc/input/pinch_zoom_scrollbar_painter.h

Issue 13065006: cc: Add DISALLOW_COPY_AND_ASSIGN where appropriate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add operator= for DrawingState back as well Created 7 years, 8 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
« no previous file with comments | « cc/input/pinch_zoom_scrollbar_geometry.h ('k') | cc/layers/contents_scaling_layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ 5 #ifndef CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_
6 #define CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ 6 #define CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_
7 7
8 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
9 #include "cc/layers/scrollbar_theme_painter.h" 10 #include "cc/layers/scrollbar_theme_painter.h"
10 11
11 namespace cc { 12 namespace cc {
12 13
13 class PinchZoomScrollbarPainter : public ScrollbarThemePainter { 14 class PinchZoomScrollbarPainter : public ScrollbarThemePainter {
14 public: 15 public:
15 PinchZoomScrollbarPainter() {} 16 PinchZoomScrollbarPainter() {}
16 virtual ~PinchZoomScrollbarPainter(); 17 virtual ~PinchZoomScrollbarPainter();
17 18
18 virtual void PaintScrollbarBackground(SkCanvas* canvas, 19 virtual void PaintScrollbarBackground(SkCanvas* canvas,
19 gfx::Rect rect) OVERRIDE; 20 gfx::Rect rect) OVERRIDE;
20 virtual void PaintTrackBackground(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; 21 virtual void PaintTrackBackground(SkCanvas* canvas, gfx::Rect rect) OVERRIDE;
21 virtual void PaintBackTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; 22 virtual void PaintBackTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE;
22 virtual void PaintForwardTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; 23 virtual void PaintForwardTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE;
23 virtual void PaintBackButtonStart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; 24 virtual void PaintBackButtonStart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE;
24 virtual void PaintBackButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; 25 virtual void PaintBackButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE;
25 virtual void PaintForwardButtonStart(SkCanvas* canvas, 26 virtual void PaintForwardButtonStart(SkCanvas* canvas,
26 gfx::Rect rect) OVERRIDE; 27 gfx::Rect rect) OVERRIDE;
27 virtual void PaintForwardButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; 28 virtual void PaintForwardButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE;
28 virtual void PaintTickmarks(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; 29 virtual void PaintTickmarks(SkCanvas* canvas, gfx::Rect rect) OVERRIDE;
29 virtual void PaintThumb(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; 30 virtual void PaintThumb(SkCanvas* canvas, gfx::Rect rect) OVERRIDE;
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(PinchZoomScrollbarPainter);
30 }; 34 };
31 35
32 } // namespace cc 36 } // namespace cc
33 37
34 #endif // CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_ 38 #endif // CC_INPUT_PINCH_ZOOM_SCROLLBAR_PAINTER_H_
OLDNEW
« no previous file with comments | « cc/input/pinch_zoom_scrollbar_geometry.h ('k') | cc/layers/contents_scaling_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698