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

Unified Diff: cc/layers/solid_color_scrollbar_layer_impl.cc

Issue 23983047: Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r248052. Created 6 years, 11 months 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/layers/solid_color_scrollbar_layer_impl.h ('k') | cc/test/layer_tree_json_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_scrollbar_layer_impl.cc
diff --git a/cc/layers/solid_color_scrollbar_layer_impl.cc b/cc/layers/solid_color_scrollbar_layer_impl.cc
index 5c63203c1b0973884ad5b9977ef0385a61c30765..0cfc853f84146b55fb4cc066d9cff14d1135c378 100644
--- a/cc/layers/solid_color_scrollbar_layer_impl.cc
+++ b/cc/layers/solid_color_scrollbar_layer_impl.cc
@@ -15,19 +15,28 @@ scoped_ptr<SolidColorScrollbarLayerImpl> SolidColorScrollbarLayerImpl::Create(
int id,
ScrollbarOrientation orientation,
int thumb_thickness,
- bool is_left_side_vertical_scrollbar) {
- return make_scoped_ptr(new SolidColorScrollbarLayerImpl(
- tree_impl, id, orientation, thumb_thickness,
- is_left_side_vertical_scrollbar));
+ bool is_left_side_vertical_scrollbar,
+ bool is_overlay) {
+ return make_scoped_ptr(
+ new SolidColorScrollbarLayerImpl(tree_impl,
+ id,
+ orientation,
+ thumb_thickness,
+ is_left_side_vertical_scrollbar,
+ is_overlay));
}
SolidColorScrollbarLayerImpl::~SolidColorScrollbarLayerImpl() {}
scoped_ptr<LayerImpl> SolidColorScrollbarLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
- return SolidColorScrollbarLayerImpl::Create(
- tree_impl, id(), orientation(), thumb_thickness_,
- is_left_side_vertical_scrollbar()).PassAs<LayerImpl>();
+ return SolidColorScrollbarLayerImpl::Create(tree_impl,
+ id(),
+ orientation(),
+ thumb_thickness_,
+ is_left_side_vertical_scrollbar(),
+ is_overlay_scrollbar())
+ .PassAs<LayerImpl>();
}
SolidColorScrollbarLayerImpl::SolidColorScrollbarLayerImpl(
@@ -35,9 +44,13 @@ SolidColorScrollbarLayerImpl::SolidColorScrollbarLayerImpl(
int id,
ScrollbarOrientation orientation,
int thumb_thickness,
- bool is_left_side_vertical_scrollbar)
- : ScrollbarLayerImplBase(tree_impl, id, orientation,
- is_left_side_vertical_scrollbar),
+ bool is_left_side_vertical_scrollbar,
+ bool is_overlay)
+ : ScrollbarLayerImplBase(tree_impl,
+ id,
+ orientation,
+ is_left_side_vertical_scrollbar,
+ is_overlay),
thumb_thickness_(thumb_thickness),
color_(tree_impl->settings().solid_color_scrollbar_color) {}
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer_impl.h ('k') | cc/test/layer_tree_json_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698