Index: Source/web/LinkHighlight.h |
diff --git a/Source/web/LinkHighlight.h b/Source/web/LinkHighlight.h |
index d4d2359cfe3b7cc146b144485de4e131e50b849f..2e71d64531ae90fe98bbf5ebf8f08ba4c8d8b76a 100644 |
--- a/Source/web/LinkHighlight.h |
+++ b/Source/web/LinkHighlight.h |
@@ -31,6 +31,8 @@ |
#include "platform/graphics/GraphicsLayer.h" |
#include "platform/graphics/Path.h" |
#include "public/platform/WebCompositorAnimationDelegate.h" |
+#include "public/platform/WebCompositorAnimationPlayer.h" |
+#include "public/platform/WebCompositorAnimationPlayerClient.h" |
#include "public/platform/WebContentLayer.h" |
#include "public/platform/WebContentLayerClient.h" |
#include "public/platform/WebLayer.h" |
@@ -44,7 +46,7 @@ class Node; |
struct WebRect; |
class WebViewImpl; |
-class LinkHighlight final : public WebContentLayerClient, public WebCompositorAnimationDelegate, LinkHighlightClient { |
+class LinkHighlight final : public WebContentLayerClient, public WebCompositorAnimationDelegate, LinkHighlightClient, WebCompositorAnimationPlayerClient { |
public: |
static PassOwnPtr<LinkHighlight> create(Node*, WebViewImpl*); |
virtual ~LinkHighlight(); |
@@ -67,6 +69,9 @@ public: |
virtual WebLayer* layer() override; |
virtual void clearCurrentGraphicsLayer() override; |
+ // WebCompositorAnimationPlayerClient implementation. |
+ WebCompositorAnimationPlayer* compositorPlayer() const override; |
+ |
GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGraphicsLayer; } |
private: |
@@ -88,6 +93,7 @@ private: |
RefPtrWillBePersistent<Node> m_node; |
WebViewImpl* m_owningWebViewImpl; |
GraphicsLayer* m_currentGraphicsLayer; |
+ OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; |
bool m_geometryNeedsUpdate; |
bool m_isAnimating; |