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

Unified Diff: cc/layers/scrollbar_layer_impl.h

Issue 23102003: Note scrollbar layer properties changed when position changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 6769d4b66cf539c9aba3b19165fabd497673531b..6347c413dfc705c0dd417d362c76fbe7af6dd876 100644
--- a/cc/layers/scrollbar_layer_impl.h
+++ b/cc/layers/scrollbar_layer_impl.h
@@ -42,31 +42,19 @@ class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
float CurrentPos() const;
int Maximum() const;
- void set_thumb_thickness(int thumb_thickness) {
- thumb_thickness_ = thumb_thickness;
- }
+ void SetThumbThickness(int thumb_thickness);
int thumb_thickness() const { return thumb_thickness_; }
- void set_thumb_length(int thumb_length) {
- thumb_length_ = thumb_length;
- }
- void set_track_start(int track_start) {
- track_start_ = track_start;
- }
- void set_track_length(int track_length) {
- track_length_ = track_length;
- }
- void set_vertical_adjust(float vertical_adjust) {
- vertical_adjust_ = vertical_adjust;
- }
+ void SetThumbLength(int thumb_length);
+ void SetTrackStart(int track_start);
+ void SetTrackLength(int track_length);
+ void SetVerticalAdjust(float vertical_adjust);
void set_track_resource_id(ResourceProvider::ResourceId id) {
track_resource_id_ = id;
}
void set_thumb_resource_id(ResourceProvider::ResourceId id) {
thumb_resource_id_ = id;
}
- void set_visible_to_total_length_ratio(float ratio) {
- visible_to_total_length_ratio_ = ratio;
- }
+ void SetVisibleToTotalLengthRatio(float ratio);
void set_is_overlay_scrollbar(bool is_overlay_scrollbar) {
is_overlay_scrollbar_ = is_overlay_scrollbar;
}

Powered by Google App Engine
This is Rietveld 408576698