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

Side by Side Diff: third_party/WebKit/Source/core/animation/KeyframeEffect.h

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bool isCandidateForAnimationOnCompositor(double animationPlaybackRate) const ; 77 bool isCandidateForAnimationOnCompositor(double animationPlaybackRate) const ;
78 // Must only be called once. 78 // Must only be called once.
79 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim eOffset, double animationPlaybackRate); 79 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim eOffset, double animationPlaybackRate);
80 bool hasActiveAnimationsOnCompositor() const; 80 bool hasActiveAnimationsOnCompositor() const;
81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; 81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const;
82 bool cancelAnimationOnCompositor(); 82 bool cancelAnimationOnCompositor();
83 void restartAnimationOnCompositor(); 83 void restartAnimationOnCompositor();
84 void cancelIncompatibleAnimationsOnCompositor(); 84 void cancelIncompatibleAnimationsOnCompositor();
85 void pauseAnimationForTestingOnCompositor(double pauseTime); 85 void pauseAnimationForTestingOnCompositor(double pauseTime);
86 86
87 bool canAttachCompositedLayers() const;
88 void attachCompositedLayers(); 87 void attachCompositedLayers();
89 88
90 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat ionIds) { m_compositorAnimationIds = compositorAnimationIds; } 89 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat ionIds) { m_compositorAnimationIds = compositorAnimationIds; }
91 90
92 DECLARE_VIRTUAL_TRACE(); 91 DECLARE_VIRTUAL_TRACE();
93 92
94 void downgradeToNormal() { m_priority = DefaultPriority; } 93 void downgradeToNormal() { m_priority = DefaultPriority; }
95 94
96 protected: 95 protected:
97 void applyEffects(); 96 void applyEffects();
(...skipping 18 matching lines...) Expand all
116 Vector<int> m_compositorAnimationIds; 115 Vector<int> m_compositorAnimationIds;
117 116
118 friend class AnimationAnimationV8Test; 117 friend class AnimationAnimationV8Test;
119 }; 118 };
120 119
121 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isKeyframeEffect(), animationNode.isKeyframeEffect()); 120 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isKeyframeEffect(), animationNode.isKeyframeEffect());
122 121
123 } // namespace blink 122 } // namespace blink
124 123
125 #endif // KeyframeEffect_h 124 #endif // KeyframeEffect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698