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

Unified Diff: cc/CCScrollbarGeometryStub.h

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CCScrollbarGeometryFixedThumb.cpp ('k') | cc/CCScrollbarGeometryStub.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCScrollbarGeometryStub.h
diff --git a/cc/CCScrollbarGeometryStub.h b/cc/CCScrollbarGeometryStub.h
index 0d23a4e78bd8d5becdaaea0530afd93ce2e82d28..3d0d81a5664c0157d460370204644f2978905b88 100644
--- a/cc/CCScrollbarGeometryStub.h
+++ b/cc/CCScrollbarGeometryStub.h
@@ -2,51 +2,5 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CCScrollbarGeometryStub_h
-#define CCScrollbarGeometryStub_h
-
-#include <public/WebScrollbarThemeGeometry.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
-
-namespace cc {
-
-// This subclass wraps an existing scrollbar geometry class so that
-// another class can derive from it and override specific functions, while
-// passing through the remaining ones.
-class CCScrollbarGeometryStub : public WebKit::WebScrollbarThemeGeometry {
-public:
- virtual ~CCScrollbarGeometryStub();
-
- // Allow derived classes to update themselves from a scrollbar.
- void update(WebKit::WebScrollbar*) { }
-
- // WebScrollbarThemeGeometry interface
- virtual WebKit::WebScrollbarThemeGeometry* clone() const OVERRIDE;
- virtual int thumbPosition(WebKit::WebScrollbar*) OVERRIDE;
- virtual int thumbLength(WebKit::WebScrollbar*) OVERRIDE;
- virtual int trackPosition(WebKit::WebScrollbar*) OVERRIDE;
- virtual int trackLength(WebKit::WebScrollbar*) OVERRIDE;
- virtual bool hasButtons(WebKit::WebScrollbar*) OVERRIDE;
- virtual bool hasThumb(WebKit::WebScrollbar*) OVERRIDE;
- virtual WebKit::WebRect trackRect(WebKit::WebScrollbar*) OVERRIDE;
- virtual WebKit::WebRect thumbRect(WebKit::WebScrollbar*) OVERRIDE;
- virtual int minimumThumbLength(WebKit::WebScrollbar*) OVERRIDE;
- virtual int scrollbarThickness(WebKit::WebScrollbar*) OVERRIDE;
- virtual WebKit::WebRect backButtonStartRect(WebKit::WebScrollbar*) OVERRIDE;
- virtual WebKit::WebRect backButtonEndRect(WebKit::WebScrollbar*) OVERRIDE;
- virtual WebKit::WebRect forwardButtonStartRect(WebKit::WebScrollbar*) OVERRIDE;
- virtual WebKit::WebRect forwardButtonEndRect(WebKit::WebScrollbar*) OVERRIDE;
- virtual WebKit::WebRect constrainTrackRectToTrackPieces(WebKit::WebScrollbar*, const WebKit::WebRect&) OVERRIDE;
- virtual void splitTrack(WebKit::WebScrollbar*, const WebKit::WebRect& track, WebKit::WebRect& startTrack, WebKit::WebRect& thumb, WebKit::WebRect& endTrack) OVERRIDE;
-
-protected:
- explicit CCScrollbarGeometryStub(PassOwnPtr<WebKit::WebScrollbarThemeGeometry>);
-
-private:
- OwnPtr<WebKit::WebScrollbarThemeGeometry> m_geometry;
-};
-
-}
-
-#endif
+// Temporary forwarding header
+#include "cc/scrollbar_geometry_stub.h"
« no previous file with comments | « cc/CCScrollbarGeometryFixedThumb.cpp ('k') | cc/CCScrollbarGeometryStub.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698