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

Unified Diff: cc/layers/scrollbar_layer_impl.h

Issue 18202006: Make scrollable viewport size no longer depend on clip layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply to MaxScrollOffset Created 7 years, 5 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
Index: cc/layers/scrollbar_layer_impl.h
diff --git a/cc/layers/scrollbar_layer_impl.h b/cc/layers/scrollbar_layer_impl.h
index dbbbe480e453fc014c7299deb10e7ef181d7b4de..f61b6608b51107ca83521e60bc822852bf736a5e 100644
--- a/cc/layers/scrollbar_layer_impl.h
+++ b/cc/layers/scrollbar_layer_impl.h
@@ -45,6 +45,7 @@ class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
void set_thumb_thickness(int thumb_thickness) {
thumb_thickness_ = thumb_thickness;
}
+ int thumb_thickness() const { return thumb_thickness_; }
void set_thumb_length(int thumb_length) {
thumb_length_ = thumb_length;
}
@@ -66,6 +67,10 @@ class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
void set_visible_to_total_length_ratio(float ratio) {
visible_to_total_length_ratio_ = ratio;
}
+ void set_is_overlay_scrollbar(bool is_overlay_scrollbar) {
+ is_overlay_scrollbar_ = is_overlay_scrollbar;
+ }
+ bool is_overlay_scrollbar() const { return is_overlay_scrollbar_; }
void SetCurrentPos(float current_pos) { current_pos_ = current_pos; }
void SetMaximum(int maximum) { maximum_ = maximum; }
@@ -101,10 +106,6 @@ class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
int scroll_layer_id_;
- bool is_scrollable_area_active_;
- bool is_scroll_view_scrollbar_;
- bool enabled_;
- bool is_custom_scrollbar_;
bool is_overlay_scrollbar_;
DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImpl);

Powered by Google App Engine
This is Rietveld 408576698