OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/test/fake_web_scrollbar.h" | 5 #include "cc/test/fake_web_scrollbar.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 void FakeWebScrollbar::setOverlay(bool is_overlay) { | |
10 is_overlay_ = is_overlay; | |
11 } | |
12 | |
13 bool FakeWebScrollbar::isOverlay() const { | 9 bool FakeWebScrollbar::isOverlay() const { |
14 return is_overlay_; | 10 return is_overlay_; |
15 } | 11 } |
16 | 12 |
17 int FakeWebScrollbar::value() const { | 13 int FakeWebScrollbar::value() const { |
18 return 0; | 14 return 0; |
19 } | 15 } |
20 | 16 |
21 WebKit::WebPoint FakeWebScrollbar::location() const { | 17 WebKit::WebPoint FakeWebScrollbar::location() const { |
22 return WebKit::WebPoint(); | 18 return WebKit::WebPoint(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 return false; | 64 return false; |
69 } | 65 } |
70 | 66 |
71 WebKit::WebScrollbar::Orientation FakeWebScrollbar::orientation() const { | 67 WebKit::WebScrollbar::Orientation FakeWebScrollbar::orientation() const { |
72 return WebScrollbar::Horizontal; | 68 return WebScrollbar::Horizontal; |
73 } | 69 } |
74 | 70 |
75 FakeWebScrollbar::FakeWebScrollbar() : is_overlay_(false) {} | 71 FakeWebScrollbar::FakeWebScrollbar() : is_overlay_(false) {} |
76 | 72 |
77 } // namespace cc | 73 } // namespace cc |
OLD | NEW |