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

Unified Diff: cc/layers/scrollbar_layer_impl_base.h

Issue 106733005: Update overlay scrollbars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add IsThumbResizable() method to allow PaintedScrollbarLayerImpl to avoid paint damage when ratio c… 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/painted_scrollbar_layer_impl.cc ('k') | cc/layers/scrollbar_layer_impl_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/scrollbar_layer_impl_base.h
diff --git a/cc/layers/scrollbar_layer_impl_base.h b/cc/layers/scrollbar_layer_impl_base.h
index 360ef9708952cd259de20f310afefdea5914d042..6292b168af9a013bed60e5e69b197259900bd3ff 100644
--- a/cc/layers/scrollbar_layer_impl_base.h
+++ b/cc/layers/scrollbar_layer_impl_base.h
@@ -64,6 +64,8 @@ class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
virtual int ThumbLength() const = 0;
virtual float TrackLength() const = 0;
virtual int TrackStart() const = 0;
+ // Indicates whether the thumb represents the visible to total length ratio.
aelias_OOO_until_Jul13 2014/01/08 22:30:17 I'd make this say "whether the thumb length can be
+ virtual bool IsThumbResizable() const = 0;
private:
int scroll_layer_id_;
« no previous file with comments | « cc/layers/painted_scrollbar_layer_impl.cc ('k') | cc/layers/scrollbar_layer_impl_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698