diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 22:43:41 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 22:43:41 +0000 |
commit | cd57cc5a246367c2558fefa04ae9eca8f4d545d2 (patch) | |
tree | a2235045e9c5e4ff028d641b76f5d01aa5461b26 /cc/CCScrollbarGeometryStub.h | |
parent | 3fe7ba055be580443445895c0ee01ada3b628487 (diff) | |
download | chromium_src-cd57cc5a246367c2558fefa04ae9eca8f4d545d2.zip chromium_src-cd57cc5a246367c2558fefa04ae9eca8f4d545d2.tar.gz chromium_src-cd57cc5a246367c2558fefa04ae9eca8f4d545d2.tar.bz2 |
[cc] Rename all cc/ filenames to Chromium style
BUG=155413
Review URL: https://codereview.chromium.org/11122003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/CCScrollbarGeometryStub.h')
-rw-r--r-- | cc/CCScrollbarGeometryStub.h | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/cc/CCScrollbarGeometryStub.h b/cc/CCScrollbarGeometryStub.h index 0d23a4e..3d0d81a5 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" |