// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_TEST_FAKE_WEB_SCROLLBAR_THEME_GEOMETRY_H_ #define CC_TEST_FAKE_WEB_SCROLLBAR_THEME_GEOMETRY_H_ #include "base/memory/scoped_ptr.h" #include namespace cc { class FakeWebScrollbarThemeGeometry : public WebKit::WebScrollbarThemeGeometry { public: static scoped_ptr create() { return scoped_ptr(new FakeWebScrollbarThemeGeometry()); } 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; }; } // namespace cc #endif // CC_TEST_FAKE_WEB_SCROLLBAR_THEME_GEOMETRY_H_