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

Unified Diff: cc/input/scrollbar_animation_controller.h

Issue 2824693002: Refactor LayerTreeImpl's scrollbar map to be keyed on element ids (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scrollbar_animation_controller.h
diff --git a/cc/input/scrollbar_animation_controller.h b/cc/input/scrollbar_animation_controller.h
index d481eae15fbc6467ab1408c5b1252359e024c320..bf4ca7ef352bb62aea26095bff8fac638364d1e3 100644
--- a/cc/input/scrollbar_animation_controller.h
+++ b/cc/input/scrollbar_animation_controller.h
@@ -23,7 +23,7 @@ class CC_EXPORT ScrollbarAnimationControllerClient {
virtual void SetNeedsRedrawForScrollbarAnimation() = 0;
virtual void SetNeedsAnimateForScrollbarAnimation() = 0;
virtual void DidChangeScrollbarVisibility() = 0;
- virtual ScrollbarSet ScrollbarsFor(int scroll_layer_id) const = 0;
+ virtual ScrollbarSet ScrollbarsFor(ElementId scroll_element_id) const = 0;
protected:
virtual ~ScrollbarAnimationControllerClient() {}
@@ -41,7 +41,7 @@ class CC_EXPORT ScrollbarAnimationController {
// animation.
static std::unique_ptr<ScrollbarAnimationController>
CreateScrollbarAnimationControllerAndroid(
- int scroll_layer_id,
+ ElementId scroll_element_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta fade_out_delay,
base::TimeDelta fade_out_resize_delay,
@@ -51,7 +51,7 @@ class CC_EXPORT ScrollbarAnimationController {
// fade out animation and thinning animation.
static std::unique_ptr<ScrollbarAnimationController>
CreateScrollbarAnimationControllerAuraOverlay(
- int scroll_layer_id,
+ ElementId scroll_element_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta show_delay,
base::TimeDelta fade_out_delay,
@@ -96,13 +96,13 @@ class CC_EXPORT ScrollbarAnimationController {
static constexpr float kMouseMoveDistanceToTriggerShow = 30.0f;
private:
- ScrollbarAnimationController(int scroll_layer_id,
+ ScrollbarAnimationController(ElementId scroll_element_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta fade_out_delay,
base::TimeDelta fade_out_resize_delay,
base::TimeDelta fade_out_duration);
- ScrollbarAnimationController(int scroll_layer_id,
+ ScrollbarAnimationController(ElementId scroll_element_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta show_delay,
base::TimeDelta fade_out_delay,
@@ -148,7 +148,7 @@ class CC_EXPORT ScrollbarAnimationController {
bool is_animating_;
- const int scroll_layer_id_;
+ const ElementId scroll_element_id_;
bool currently_scrolling_;
bool show_in_fast_scroll_;
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698