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

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

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_web_scrollbar.h ('k') | cc/tiled_layer_unittest.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 #include "cc/test/fake_web_scrollbar.h"
6
7 namespace cc {
8
9 bool FakeWebScrollbar::isOverlay() const {
10 return false;
11 }
12
13 int FakeWebScrollbar::value() const {
14 return 0;
15 }
16
17 WebKit::WebPoint FakeWebScrollbar::location() const {
18 return WebKit::WebPoint();
19 }
20
21 WebKit::WebSize FakeWebScrollbar::size() const {
22 return WebKit::WebSize();
23 }
24
25 bool FakeWebScrollbar::enabled() const {
26 return true;
27 }
28
29 int FakeWebScrollbar::maximum() const {
30 return 0;
31 }
32
33 int FakeWebScrollbar::totalSize() const {
34 return 0;
35 }
36
37 bool FakeWebScrollbar::isScrollViewScrollbar() const {
38 return false;
39 }
40
41 bool FakeWebScrollbar::isScrollableAreaActive() const {
42 return true;
43 }
44
45 WebKit::WebScrollbar::ScrollbarControlSize FakeWebScrollbar::controlSize() const {
46 return WebScrollbar::RegularScrollbar;
47 }
48
49 WebKit::WebScrollbar::ScrollbarPart FakeWebScrollbar::pressedPart() const {
50 return WebScrollbar::NoPart;
51 }
52
53 WebKit::WebScrollbar::ScrollbarPart FakeWebScrollbar::hoveredPart() const {
54 return WebScrollbar::NoPart;
55 }
56
57 WebKit::WebScrollbar::ScrollbarOverlayStyle FakeWebScrollbar::scrollbarOverlaySt yle() const {
58 return WebScrollbar::ScrollbarOverlayStyleDefault;
59 }
60
61 bool FakeWebScrollbar::isCustomScrollbar() const {
62 return false;
63 }
64
65 WebKit::WebScrollbar::Orientation FakeWebScrollbar::orientation() const {
66 return WebScrollbar::Horizontal;
67 }
68
69 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_web_scrollbar.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698