Make explicit which TextIndicator animations are driven manually, and which run autom...
[WebKit-https.git] / Source / WebCore / page / TextIndicator.h
index 0844bd551b5eda6e8857ea68e0171f102f781dd9..4ea197dbaa3fc9e26cc33bfa52031039685aa06b 100644 (file)
@@ -46,8 +46,12 @@ class Range;
 
 enum class TextIndicatorPresentationTransition {
     None,
+
+    // These animations drive themselves.
     Bounce,
     BounceAndCrossfade,
+
+    // These animations need to be driven manually via TextIndicatorWindow::setAnimationProgress.
     FadeIn,
     Crossfade
 };
@@ -85,6 +89,7 @@ public:
     bool wantsBounce() const;
     bool wantsContentCrossfade() const;
     bool wantsFadeIn() const;
+    bool wantsManualAnimation() const;
 
 private:
     TextIndicator(const TextIndicatorData&);