add a use_alsa gyp setting
[chromium-blink-merge.git] / cc / test / fake_web_scrollbar.h
blob89313d667a3cc6c4fb9b00d29e274ed13374996a
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>
11 namespace cc {
13 class FakeWebScrollbar : public WebKit::WebScrollbar {
14 public:
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;
39 private:
40 FakeWebScrollbar();
42 bool m_isOverlay;
45 } // namespace cc
47 #endif // CC_TEST_FAKE_WEB_SCROLLBAR_H_