| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| 11 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
| 12 * | 12 * |
| 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND | 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND |
| 14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 16 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR | 16 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR |
| 17 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 17 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 19 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | 19 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 20 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | 20 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef ScriptedAnimationController_h | 26 #ifndef ScriptedAnimationController_h |
| 27 #define ScriptedAnimationController_h | 27 #define ScriptedAnimationController_h |
| 28 | 28 |
| 29 #include "core/CoreExport.h" |
| 29 #include "core/dom/FrameRequestCallbackCollection.h" | 30 #include "core/dom/FrameRequestCallbackCollection.h" |
| 30 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 31 #include "wtf/ListHashSet.h" | 32 #include "wtf/ListHashSet.h" |
| 32 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
| 33 #include "wtf/text/AtomicString.h" | 34 #include "wtf/text/AtomicString.h" |
| 34 #include "wtf/text/StringImpl.h" | 35 #include "wtf/text/StringImpl.h" |
| 35 | 36 |
| 36 namespace blink { | 37 namespace blink { |
| 37 | 38 |
| 38 class Document; | 39 class Document; |
| 39 class Event; | 40 class Event; |
| 40 class EventTarget; | 41 class EventTarget; |
| 41 class FrameRequestCallback; | 42 class FrameRequestCallback; |
| 42 class MediaQueryListListener; | 43 class MediaQueryListListener; |
| 43 | 44 |
| 44 class ScriptedAnimationController | 45 class CORE_EXPORT ScriptedAnimationController |
| 45 : public GarbageCollected<ScriptedAnimationController> { | 46 : public GarbageCollected<ScriptedAnimationController> { |
| 46 public: | 47 public: |
| 47 static ScriptedAnimationController* create(Document* document) { | 48 static ScriptedAnimationController* create(Document* document) { |
| 48 return new ScriptedAnimationController(document); | 49 return new ScriptedAnimationController(document); |
| 49 } | 50 } |
| 50 | 51 |
| 51 DECLARE_TRACE(); | 52 DECLARE_TRACE(); |
| 52 void clearDocumentPointer() { m_document = nullptr; } | 53 void clearDocumentPointer() { m_document = nullptr; } |
| 53 | 54 |
| 54 typedef int CallbackId; | 55 typedef int CallbackId; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 HeapListHashSet<std::pair<Member<const EventTarget>, const StringImpl*>> | 87 HeapListHashSet<std::pair<Member<const EventTarget>, const StringImpl*>> |
| 87 m_perFrameEvents; | 88 m_perFrameEvents; |
| 88 using MediaQueryListListeners = | 89 using MediaQueryListListeners = |
| 89 HeapListHashSet<Member<MediaQueryListListener>>; | 90 HeapListHashSet<Member<MediaQueryListListener>>; |
| 90 MediaQueryListListeners m_mediaQueryListListeners; | 91 MediaQueryListListeners m_mediaQueryListListeners; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace blink | 94 } // namespace blink |
| 94 | 95 |
| 95 #endif // ScriptedAnimationController_h | 96 #endif // ScriptedAnimationController_h |
| OLD | NEW |