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

Side by Side Diff: cc/scrollbar_geometry_stub.h

Issue 11144034: cc: Remove wtf includes for scrollbar layer classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 2 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/scrollbar_geometry_fixed_thumb.cc ('k') | cc/scrollbar_geometry_stub.cc » ('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 2012 The Chromium Authors. All rights reserved. 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 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 CCScrollbarGeometryStub_h 5 #ifndef CCScrollbarGeometryStub_h
6 #define CCScrollbarGeometryStub_h 6 #define CCScrollbarGeometryStub_h
7 7
8 #include "base/memory/scoped_ptr.h"
8 #include <public/WebScrollbarThemeGeometry.h> 9 #include <public/WebScrollbarThemeGeometry.h>
9 #include <wtf/OwnPtr.h>
10 #include <wtf/PassOwnPtr.h>
11 10
12 namespace cc { 11 namespace cc {
13 12
14 // This subclass wraps an existing scrollbar geometry class so that 13 // This subclass wraps an existing scrollbar geometry class so that
15 // another class can derive from it and override specific functions, while 14 // another class can derive from it and override specific functions, while
16 // passing through the remaining ones. 15 // passing through the remaining ones.
17 class CCScrollbarGeometryStub : public WebKit::WebScrollbarThemeGeometry { 16 class CCScrollbarGeometryStub : public WebKit::WebScrollbarThemeGeometry {
18 public: 17 public:
19 virtual ~CCScrollbarGeometryStub(); 18 virtual ~CCScrollbarGeometryStub();
20 19
(...skipping 13 matching lines...) Expand all
34 virtual int minimumThumbLength(WebKit::WebScrollbar*) OVERRIDE; 33 virtual int minimumThumbLength(WebKit::WebScrollbar*) OVERRIDE;
35 virtual int scrollbarThickness(WebKit::WebScrollbar*) OVERRIDE; 34 virtual int scrollbarThickness(WebKit::WebScrollbar*) OVERRIDE;
36 virtual WebKit::WebRect backButtonStartRect(WebKit::WebScrollbar*) OVERRIDE; 35 virtual WebKit::WebRect backButtonStartRect(WebKit::WebScrollbar*) OVERRIDE;
37 virtual WebKit::WebRect backButtonEndRect(WebKit::WebScrollbar*) OVERRIDE; 36 virtual WebKit::WebRect backButtonEndRect(WebKit::WebScrollbar*) OVERRIDE;
38 virtual WebKit::WebRect forwardButtonStartRect(WebKit::WebScrollbar*) OVERRI DE; 37 virtual WebKit::WebRect forwardButtonStartRect(WebKit::WebScrollbar*) OVERRI DE;
39 virtual WebKit::WebRect forwardButtonEndRect(WebKit::WebScrollbar*) OVERRIDE ; 38 virtual WebKit::WebRect forwardButtonEndRect(WebKit::WebScrollbar*) OVERRIDE ;
40 virtual WebKit::WebRect constrainTrackRectToTrackPieces(WebKit::WebScrollbar *, const WebKit::WebRect&) OVERRIDE; 39 virtual WebKit::WebRect constrainTrackRectToTrackPieces(WebKit::WebScrollbar *, const WebKit::WebRect&) OVERRIDE;
41 virtual void splitTrack(WebKit::WebScrollbar*, const WebKit::WebRect& track, WebKit::WebRect& startTrack, WebKit::WebRect& thumb, WebKit::WebRect& endTrack) OVERRIDE; 40 virtual void splitTrack(WebKit::WebScrollbar*, const WebKit::WebRect& track, WebKit::WebRect& startTrack, WebKit::WebRect& thumb, WebKit::WebRect& endTrack) OVERRIDE;
42 41
43 protected: 42 protected:
44 explicit CCScrollbarGeometryStub(PassOwnPtr<WebKit::WebScrollbarThemeGeometr y>); 43 explicit CCScrollbarGeometryStub(scoped_ptr<WebKit::WebScrollbarThemeGeometr y>);
45 44
46 private: 45 private:
47 OwnPtr<WebKit::WebScrollbarThemeGeometry> m_geometry; 46 scoped_ptr<WebKit::WebScrollbarThemeGeometry> m_geometry;
48 }; 47 };
49 48
50 } 49 }
51 50
52 #endif 51 #endif
OLDNEW
« no previous file with comments | « cc/scrollbar_geometry_fixed_thumb.cc ('k') | cc/scrollbar_geometry_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698