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

Unified Diff: cc/test/fake_painted_scrollbar_layer.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_painted_scrollbar_layer.h ('k') | cc/test/fake_scrollbar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_painted_scrollbar_layer.cc
diff --git a/cc/test/fake_painted_scrollbar_layer.cc b/cc/test/fake_painted_scrollbar_layer.cc
index c1b9e793a1d93c374c34ce67f7df56908c62bd35..e479e4a263f0dfdbea7787f8f275e95154483d29 100644
--- a/cc/test/fake_painted_scrollbar_layer.cc
+++ b/cc/test/fake_painted_scrollbar_layer.cc
@@ -14,8 +14,20 @@ scoped_refptr<FakePaintedScrollbarLayer> FakePaintedScrollbarLayer::Create(
bool paint_during_update,
bool has_thumb,
int scrolling_layer_id) {
- FakeScrollbar* fake_scrollbar = new FakeScrollbar(
- paint_during_update, has_thumb, false);
+ return Create(paint_during_update, has_thumb, HORIZONTAL, false, false,
+ scrolling_layer_id);
+}
+
+scoped_refptr<FakePaintedScrollbarLayer> FakePaintedScrollbarLayer::Create(
+ bool paint_during_update,
+ bool has_thumb,
+ ScrollbarOrientation orientation,
+ bool is_left_side_vertical_scrollbar,
+ bool is_overlay,
+ int scrolling_layer_id) {
+ FakeScrollbar* fake_scrollbar =
+ new FakeScrollbar(paint_during_update, has_thumb, orientation,
+ is_left_side_vertical_scrollbar, is_overlay);
return make_scoped_refptr(
new FakePaintedScrollbarLayer(fake_scrollbar, scrolling_layer_id));
}
« no previous file with comments | « cc/test/fake_painted_scrollbar_layer.h ('k') | cc/test/fake_scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698