| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_SCROLLBAR_LAYER_IMPL_H_ | 5 #ifndef CC_SCROLLBAR_LAYER_IMPL_H_ |
| 6 #define CC_SCROLLBAR_LAYER_IMPL_H_ | 6 #define CC_SCROLLBAR_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/cc_export.h" | 8 #include "cc/cc_export.h" |
| 9 #include "cc/scrollbar_geometry_fixed_thumb.h" | 9 #include "cc/scrollbar_geometry_fixed_thumb.h" |
| 10 #include "cc/scrollbar_layer_impl_base.h" | 10 #include "cc/scrollbar_layer_impl_base.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 void set_back_track_resource_id(ResourceProvider::ResourceId id) { | 33 void set_back_track_resource_id(ResourceProvider::ResourceId id) { |
| 34 back_track_resource_id_ = id; | 34 back_track_resource_id_ = id; |
| 35 } | 35 } |
| 36 void set_fore_track_resource_id(ResourceProvider::ResourceId id) { | 36 void set_fore_track_resource_id(ResourceProvider::ResourceId id) { |
| 37 fore_track_resource_id_ = id; | 37 fore_track_resource_id_ = id; |
| 38 } | 38 } |
| 39 void set_thumb_resource_id(ResourceProvider::ResourceId id) { | 39 void set_thumb_resource_id(ResourceProvider::ResourceId id) { |
| 40 thumb_resource_id_ = id; | 40 thumb_resource_id_ = id; |
| 41 } | 41 } |
| 42 bool HasThumbTexture() { return thumb_resource_id_; } |
| 42 | 43 |
| 43 | 44 |
| 44 // ScrollbarLayerImplBase implementation. | 45 // ScrollbarLayerImplBase implementation. |
| 45 virtual float CurrentPos() const OVERRIDE; | 46 virtual float CurrentPos() const OVERRIDE; |
| 46 virtual int TotalSize() const OVERRIDE; | 47 virtual int TotalSize() const OVERRIDE; |
| 47 virtual int Maximum() const OVERRIDE; | 48 virtual int Maximum() const OVERRIDE; |
| 48 | 49 |
| 49 void SetCurrentPos(float current_pos) { current_pos_ = current_pos; } | 50 void SetCurrentPos(float current_pos) { current_pos_ = current_pos; } |
| 50 void SetTotalSize(int total_size) { total_size_ = total_size; } | 51 void SetTotalSize(int total_size) { total_size_ = total_size; } |
| 51 void SetMaximum(int maximum) { maximum_ = maximum; } | 52 void SetMaximum(int maximum) { maximum_ = maximum; } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 126 |
| 126 bool is_scrollable_area_active_; | 127 bool is_scrollable_area_active_; |
| 127 bool is_scroll_view_scrollbar_; | 128 bool is_scroll_view_scrollbar_; |
| 128 bool enabled_; | 129 bool enabled_; |
| 129 bool is_custom_scrollbar_; | 130 bool is_custom_scrollbar_; |
| 130 bool is_overlay_scrollbar_; | 131 bool is_overlay_scrollbar_; |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } | 134 } |
| 134 #endif // CC_SCROLLBAR_LAYER_IMPL_H_ | 135 #endif // CC_SCROLLBAR_LAYER_IMPL_H_ |
| OLD | NEW |