Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 15 matching lines...) Expand all Loading... | |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef AnimationPlayer_h | 31 #ifndef AnimationPlayer_h |
| 32 #define AnimationPlayer_h | 32 #define AnimationPlayer_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptPromise.h" | 34 #include "bindings/core/v8/ScriptPromise.h" |
| 35 #include "bindings/core/v8/ScriptPromiseProperty.h" | 35 #include "bindings/core/v8/ScriptPromiseProperty.h" |
| 36 #include "core/CSSPropertyNames.h" | |
| 36 #include "core/animation/AnimationNode.h" | 37 #include "core/animation/AnimationNode.h" |
| 37 #include "core/dom/ActiveDOMObject.h" | 38 #include "core/dom/ActiveDOMObject.h" |
| 38 #include "core/dom/DOMException.h" | 39 #include "core/dom/DOMException.h" |
| 39 #include "core/events/EventTarget.h" | 40 #include "core/events/EventTarget.h" |
| 40 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
| 41 #include "wtf/RefPtr.h" | 42 #include "wtf/RefPtr.h" |
| 42 | 43 |
| 43 namespace blink { | 44 namespace blink { |
| 44 | 45 |
| 45 class AnimationTimeline; | 46 class AnimationTimeline; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 void pauseForTesting(double pauseTime); | 134 void pauseForTesting(double pauseTime); |
| 134 // This should only be used for CSS | 135 // This should only be used for CSS |
| 135 void unpause(); | 136 void unpause(); |
| 136 | 137 |
| 137 void setOutdated(); | 138 void setOutdated(); |
| 138 bool outdated() { return m_outdated; } | 139 bool outdated() { return m_outdated; } |
| 139 | 140 |
| 140 bool canStartAnimationOnCompositor(); | 141 bool canStartAnimationOnCompositor(); |
| 141 bool maybeStartAnimationOnCompositor(); | 142 bool maybeStartAnimationOnCompositor(); |
| 142 void cancelAnimationOnCompositor(); | 143 void cancelAnimationOnCompositor(); |
| 144 void cancelAffectedAnimationsOnCompositor(); | |
| 143 bool hasActiveAnimationsOnCompositor(); | 145 bool hasActiveAnimationsOnCompositor(); |
| 144 void setCompositorPending(bool sourceChanged = false); | 146 void setCompositorPending(bool sourceChanged = false); |
| 145 void notifyCompositorStartTime(double timelineTime); | 147 void notifyCompositorStartTime(double timelineTime); |
| 146 void notifyStartTime(double timelineTime); | 148 void notifyStartTime(double timelineTime); |
| 147 | 149 |
| 150 bool affects(CSSPropertyID) const; | |
|
dstockwell
2015/01/28 05:44:05
This should have an element for context (conceptua
loyso (OOO)
2015/01/28 06:33:31
Is that possible with current codebase? AnimationP
dstockwell
2015/01/29 01:14:07
No it is not possible currently, but I would like
| |
| 148 | 151 |
| 149 void preCommit(int compositorGroup, bool startOnCompositor); | 152 void preCommit(int compositorGroup, bool startOnCompositor); |
| 150 void postCommit(double timelineTime); | 153 void postCommit(double timelineTime); |
| 151 | 154 |
| 152 unsigned sequenceNumber() const { return m_sequenceNumber; } | 155 unsigned sequenceNumber() const { return m_sequenceNumber; } |
| 153 int compositorGroup() const { return m_compositorGroup; } | 156 int compositorGroup() const { return m_compositorGroup; } |
| 154 | 157 |
| 155 static bool hasLowerPriority(AnimationPlayer* player1, AnimationPlayer* play er2) | 158 static bool hasLowerPriority(AnimationPlayer* player1, AnimationPlayer* play er2) |
| 156 { | 159 { |
| 157 return player1->sequenceNumber() < player2->sequenceNumber(); | 160 return player1->sequenceNumber() < player2->sequenceNumber(); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 int m_compositorGroup; | 262 int m_compositorGroup; |
| 260 | 263 |
| 261 bool m_currentTimePending; | 264 bool m_currentTimePending; |
| 262 bool m_stateIsBeingUpdated; | 265 bool m_stateIsBeingUpdated; |
| 263 | 266 |
| 264 }; | 267 }; |
| 265 | 268 |
| 266 } // namespace blink | 269 } // namespace blink |
| 267 | 270 |
| 268 #endif // AnimationPlayer_h | 271 #endif // AnimationPlayer_h |
| OLD | NEW |