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
3 // found in the LICENSE file.
5 #ifndef CC_TEST_FAKE_WEB_SCROLLBAR_H_
6 #define CC_TEST_FAKE_WEB_SCROLLBAR_H_
8 #include "base/memory/scoped_ptr.h"
9 #include <public/WebScrollbar.h>
13 class FakeWebScrollbar
: public WebKit::WebScrollbar
{
15 static scoped_ptr
<FakeWebScrollbar
> create() {
16 return make_scoped_ptr(new FakeWebScrollbar());
19 void setOverlay(bool isOverlay
);
21 // WebScrollbar implementation
22 virtual bool isOverlay() const OVERRIDE
;
23 virtual int value() const OVERRIDE
;
24 virtual WebKit::WebPoint
location() const OVERRIDE
;
25 virtual WebKit::WebSize
size() const OVERRIDE
;
26 virtual bool enabled() const OVERRIDE
;
27 virtual int maximum() const OVERRIDE
;
28 virtual int totalSize() const OVERRIDE
;
29 virtual bool isScrollViewScrollbar() const OVERRIDE
;
30 virtual bool isScrollableAreaActive() const OVERRIDE
;
31 virtual void getTickmarks(WebKit::WebVector
<WebKit::WebRect
>&) const OVERRIDE
{}
32 virtual ScrollbarControlSize
controlSize() const OVERRIDE
;
33 virtual ScrollbarPart
pressedPart() const OVERRIDE
;
34 virtual ScrollbarPart
hoveredPart() const OVERRIDE
;
35 virtual ScrollbarOverlayStyle
scrollbarOverlayStyle() const OVERRIDE
;
36 virtual bool isCustomScrollbar() const OVERRIDE
;
37 virtual Orientation
orientation() const OVERRIDE
;
47 #endif // CC_TEST_FAKE_WEB_SCROLLBAR_H_