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

Side by Side Diff: cc/test/fake_web_scrollbar.h

Issue 11609002: cc: Create a cc::ScrollbarThemePainter and an adapter class in compositor bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: notry Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_scrollbar_theme_painter.cc ('k') | cc/test/fake_web_scrollbar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CC_TEST_FAKE_WEB_SCROLLBAR_H_
6 #define CC_TEST_FAKE_WEB_SCROLLBAR_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include <public/WebScrollbar.h>
10
11 namespace cc {
12
13 class FakeWebScrollbar : public WebKit::WebScrollbar {
14 public:
15 static scoped_ptr<FakeWebScrollbar> create() {
16 return make_scoped_ptr(new FakeWebScrollbar());
17 }
18
19 // WebScrollbar implementation
20 virtual bool isOverlay() const OVERRIDE;
21 virtual int value() const OVERRIDE;
22 virtual WebKit::WebPoint location() const OVERRIDE;
23 virtual WebKit::WebSize size() const OVERRIDE;
24 virtual bool enabled() const OVERRIDE;
25 virtual int maximum() const OVERRIDE;
26 virtual int totalSize() const OVERRIDE;
27 virtual bool isScrollViewScrollbar() const OVERRIDE;
28 virtual bool isScrollableAreaActive() const OVERRIDE;
29 virtual void getTickmarks(WebKit::WebVector<WebKit::WebRect>&) const OVERRIDE {}
30 virtual ScrollbarControlSize controlSize() const OVERRIDE;
31 virtual ScrollbarPart pressedPart() const OVERRIDE;
32 virtual ScrollbarPart hoveredPart() const OVERRIDE;
33 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE;
34 virtual bool isCustomScrollbar() const OVERRIDE;
35 virtual Orientation orientation() const OVERRIDE;
36 };
37
38 } // namespace cc
39
40 #endif // CC_TEST_FAKE_WEB_SCROLLBAR_H_
OLDNEW
« no previous file with comments | « cc/test/fake_scrollbar_theme_painter.cc ('k') | cc/test/fake_web_scrollbar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698