Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Document.h |
| diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h |
| index 92c145998e359219f57d29780fc5d3af6d0a28d0..034be3acac0bb83814c3edce4cc645cc6ea9f923 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.h |
| +++ b/third_party/WebKit/Source/core/dom/Document.h |
| @@ -171,6 +171,8 @@ class TreeWalker; |
| class V8NodeFilterCondition; |
| class VisitedLinkState; |
| class WebMouseEvent; |
| +class WorkletAnimationBase; |
| +class WorkletAnimationController; |
| struct AnnotatedRegionValue; |
| struct FocusParams; |
| struct IconURL; |
| @@ -1134,6 +1136,12 @@ class CORE_EXPORT Document : public ContainerNode, |
| void CancelAnimationFrame(int id); |
| void ServiceScriptedAnimations(double monotonic_animation_start_time); |
| + WorkletAnimationController& GetWorkletAnimationController() { |
| + return *worklet_animation_controller_; |
| + } |
| + void RegisterWorkletAnimation(WorkletAnimationBase*); |
|
majidvp
2017/06/06 16:04:27
nit: should take a const ref.
smcgruer
2017/06/07 18:23:25
Made it take a ref (in WorkletAnimationController)
|
| + void DeregisterWorkletAnimation(WorkletAnimationBase*); |
| + |
| int RequestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&); |
| void CancelIdleCallback(int id); |
| @@ -1654,6 +1662,7 @@ class CORE_EXPORT Document : public ContainerNode, |
| Member<DocumentTimeline> timeline_; |
| Member<CompositorPendingAnimations> compositor_pending_animations_; |
| + Member<WorkletAnimationController> worklet_animation_controller_; |
| Member<Document> template_document_; |
| Member<Document> template_document_host_; |