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

Unified Diff: cc/layers/scrollbar_layer_impl_base.h

Issue 2816063003: Replace layer id with Element id for tracking scrollbar animation controllers (Closed)
Patch Set: Address reviewer comments, pull element_id.h change to another patch Created 3 years, 8 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_base.h
diff --git a/cc/layers/scrollbar_layer_impl_base.h b/cc/layers/scrollbar_layer_impl_base.h
index 0b9b403950bc1f044af3c8ba114e9ef754e271d2..21f4d6aadae400c0f30f492d05cf2417afc2b5b7 100644
--- a/cc/layers/scrollbar_layer_impl_base.h
+++ b/cc/layers/scrollbar_layer_impl_base.h
@@ -18,8 +18,9 @@ class LayerTreeImpl;
class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
public:
int ScrollLayerId() const { return scroll_layer_id_; }
+ ElementId scroll_element_id() const { return scroll_element_id_; }
- void SetScrollLayerId(int scroll_layer_id);
+ void SetScrollInfo(int scroll_layer_id, ElementId scroll_element_id);
float current_pos() const { return current_pos_; }
bool SetCurrentPos(float current_pos);
@@ -77,6 +78,7 @@ class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
private:
int scroll_layer_id_;
+ ElementId scroll_element_id_;
bool is_overlay_scrollbar_;
float thumb_thickness_scale_factor_;

Powered by Google App Engine
This is Rietveld 408576698