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

Unified Diff: cc/layers/scrollbar_layer_interface.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_interface.h
diff --git a/cc/layers/scrollbar_layer_interface.h b/cc/layers/scrollbar_layer_interface.h
index 30c335ba01134ec0d613f0690281cf5723e23e3a..917f709863cc9a9f2d374477b41850115015bf39 100644
--- a/cc/layers/scrollbar_layer_interface.h
+++ b/cc/layers/scrollbar_layer_interface.h
@@ -13,8 +13,9 @@ namespace cc {
class CC_EXPORT ScrollbarLayerInterface {
public:
- virtual int ScrollLayerId() const = 0;
- virtual void SetScrollLayer(int layer_id) = 0;
+ virtual ElementId scroll_element_id() const = 0;
+ // TODO(pdr): Remove layer_id and refactor scrollbars to just use element ids.
+ virtual void SetScrollInfo(int layer_id, ElementId element_id) = 0;
virtual ScrollbarOrientation orientation() const = 0;

Powered by Google App Engine
This is Rietveld 408576698