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

Side by Side Diff: cc/input/pinch_zoom_scrollbar_geometry.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, 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
« no previous file with comments | « cc/input/pinch_zoom_scrollbar.h ('k') | cc/input/pinch_zoom_scrollbar_painter.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_GEOMETRY_H_ 5 #ifndef CC_INPUT_PINCH_ZOOM_SCROLLBAR_GEOMETRY_H_
6 #define CC_INPUT_PINCH_ZOOM_SCROLLBAR_GEOMETRY_H_ 6 #define CC_INPUT_PINCH_ZOOM_SCROLLBAR_GEOMETRY_H_
7 7
8 #include "base/basictypes.h"
8 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemeGe ometry.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemeGe ometry.h"
10 11
11 using WebKit::WebScrollbar; 12 using WebKit::WebScrollbar;
12 using WebKit::WebRect; 13 using WebKit::WebRect;
13 using WebKit::WebScrollbarThemeGeometry; 14 using WebKit::WebScrollbarThemeGeometry;
14 15
15 namespace cc { 16 namespace cc {
16 17
17 class PinchZoomScrollbarGeometry : public WebScrollbarThemeGeometry { 18 class PinchZoomScrollbarGeometry : public WebScrollbarThemeGeometry {
18 public: 19 public:
20 PinchZoomScrollbarGeometry() {}
19 virtual ~PinchZoomScrollbarGeometry() {} 21 virtual ~PinchZoomScrollbarGeometry() {}
20 22
21 static const int kTrackWidth; 23 static const int kTrackWidth;
22 24
23 // Implement WebScrollbarThemeGeometry interface. 25 // Implement WebScrollbarThemeGeometry interface.
24 virtual WebScrollbarThemeGeometry* clone() const; 26 virtual WebScrollbarThemeGeometry* clone() const;
25 virtual int thumbPosition(WebScrollbar* scrollbar); 27 virtual int thumbPosition(WebScrollbar* scrollbar);
26 virtual int thumbLength(WebScrollbar* scrollbar); 28 virtual int thumbLength(WebScrollbar* scrollbar);
27 virtual int trackPosition(WebScrollbar* scrollbar); 29 virtual int trackPosition(WebScrollbar* scrollbar);
28 virtual int trackLength(WebScrollbar* scrollbar); 30 virtual int trackLength(WebScrollbar* scrollbar);
29 virtual bool hasButtons(WebScrollbar* scrollbar); 31 virtual bool hasButtons(WebScrollbar* scrollbar);
30 virtual bool hasThumb(WebScrollbar* scrollbar); 32 virtual bool hasThumb(WebScrollbar* scrollbar);
31 virtual WebRect trackRect(WebScrollbar* scrollbar); 33 virtual WebRect trackRect(WebScrollbar* scrollbar);
32 virtual WebRect thumbRect(WebScrollbar* scrollbar); 34 virtual WebRect thumbRect(WebScrollbar* scrollbar);
33 virtual int minimumThumbLength(WebScrollbar* scrollbar); 35 virtual int minimumThumbLength(WebScrollbar* scrollbar);
34 virtual int scrollbarThickness(WebScrollbar* scrollbar); 36 virtual int scrollbarThickness(WebScrollbar* scrollbar);
35 virtual WebRect backButtonStartRect(WebScrollbar* scrollbar); 37 virtual WebRect backButtonStartRect(WebScrollbar* scrollbar);
36 virtual WebRect backButtonEndRect(WebScrollbar* scrollbar); 38 virtual WebRect backButtonEndRect(WebScrollbar* scrollbar);
37 virtual WebRect forwardButtonStartRect(WebScrollbar* scrollbar); 39 virtual WebRect forwardButtonStartRect(WebScrollbar* scrollbar);
38 virtual WebRect forwardButtonEndRect(WebScrollbar* scrollbar); 40 virtual WebRect forwardButtonEndRect(WebScrollbar* scrollbar);
39 41
40 virtual WebRect constrainTrackRectToTrackPieces(WebScrollbar* scrollbar, 42 virtual WebRect constrainTrackRectToTrackPieces(WebScrollbar* scrollbar,
41 const WebRect& trackRect); 43 const WebRect& trackRect);
42 44
43 virtual void splitTrack( 45 virtual void splitTrack(
44 WebScrollbar* scrollbar, const WebRect& track, WebRect& start_track, 46 WebScrollbar* scrollbar, const WebRect& track, WebRect& start_track,
45 WebRect& thumb, WebRect& end_track); 47 WebRect& thumb, WebRect& end_track);
48
49 private:
50 DISALLOW_COPY_AND_ASSIGN(PinchZoomScrollbarGeometry);
46 }; 51 };
47 52
48 } // namespace WebKit 53 } // namespace WebKit
49 #endif // CC_INPUT_PINCH_ZOOM_SCROLLBAR_GEOMETRY_H_ 54 #endif // CC_INPUT_PINCH_ZOOM_SCROLLBAR_GEOMETRY_H_
OLDNEW
« no previous file with comments | « cc/input/pinch_zoom_scrollbar.h ('k') | cc/input/pinch_zoom_scrollbar_painter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698