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

Unified Diff: cc/test/fake_scrollbar.cc

Issue 2468423004: Left side vertical MD scrollbars grow toward right. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_scrollbar.h ('k') | cc/test/layer_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_scrollbar.cc
diff --git a/cc/test/fake_scrollbar.cc b/cc/test/fake_scrollbar.cc
index 80bd44422a301c8fcb595ce64d2b664ad12c20b9..58a04517cddf0a4971777bc96198af6344c33624 100644
--- a/cc/test/fake_scrollbar.cc
+++ b/cc/test/fake_scrollbar.cc
@@ -10,20 +10,20 @@
namespace cc {
FakeScrollbar::FakeScrollbar()
- : paint_(false),
- has_thumb_(false),
- is_overlay_(false),
- thumb_thickness_(10),
- thumb_length_(5),
- thumb_opacity_(1),
- needs_paint_thumb_(true),
- needs_paint_track_(true),
- track_rect_(0, 0, 100, 10),
- fill_color_(SK_ColorGREEN) {}
+ : FakeScrollbar(false, false, HORIZONTAL, false, false) {}
FakeScrollbar::FakeScrollbar(bool paint, bool has_thumb, bool is_overlay)
+ : FakeScrollbar(paint, has_thumb, HORIZONTAL, false, is_overlay) {}
+
+FakeScrollbar::FakeScrollbar(bool paint,
+ bool has_thumb,
+ ScrollbarOrientation orientation,
+ bool is_left_side_vertical_scrollbar,
+ bool is_overlay)
: paint_(paint),
has_thumb_(has_thumb),
+ orientation_(orientation),
+ is_left_side_vertical_scrollbar_(is_left_side_vertical_scrollbar),
is_overlay_(is_overlay),
thumb_thickness_(10),
thumb_length_(5),
@@ -36,11 +36,11 @@ FakeScrollbar::FakeScrollbar(bool paint, bool has_thumb, bool is_overlay)
FakeScrollbar::~FakeScrollbar() {}
ScrollbarOrientation FakeScrollbar::Orientation() const {
- return HORIZONTAL;
+ return orientation_;
}
bool FakeScrollbar::IsLeftSideVerticalScrollbar() const {
- return false;
+ return is_left_side_vertical_scrollbar_;
}
gfx::Point FakeScrollbar::Location() const { return location_; }
« no previous file with comments | « cc/test/fake_scrollbar.h ('k') | cc/test/layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698