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 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class RequestAnimationFrameCallback; | 43 class RequestAnimationFrameCallback; |
44 | 44 |
45 class ScriptedAnimationController : public RefCountedWillBeGarbageCollected<Scri
ptedAnimationController> { | 45 class ScriptedAnimationController : public RefCountedWillBeGarbageCollected<Scri
ptedAnimationController> { |
46 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptedAnimationController); | 46 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptedAnimationController); |
47 public: | 47 public: |
48 static PassRefPtrWillBeRawPtr<ScriptedAnimationController> create(Document*
document) | 48 static PassRefPtrWillBeRawPtr<ScriptedAnimationController> create(Document*
document) |
49 { | 49 { |
50 return adoptRefWillBeNoop(new ScriptedAnimationController(document)); | 50 return adoptRefWillBeNoop(new ScriptedAnimationController(document)); |
51 } | 51 } |
52 | 52 |
53 void trace(Visitor*); | 53 DECLARE_TRACE(); |
54 void clearDocumentPointer() { m_document = nullptr; } | 54 void clearDocumentPointer() { m_document = nullptr; } |
55 | 55 |
56 typedef int CallbackId; | 56 typedef int CallbackId; |
57 | 57 |
58 int registerCallback(RequestAnimationFrameCallback*); | 58 int registerCallback(RequestAnimationFrameCallback*); |
59 void cancelCallback(CallbackId); | 59 void cancelCallback(CallbackId); |
60 void serviceScriptedAnimations(double monotonicTimeNow); | 60 void serviceScriptedAnimations(double monotonicTimeNow); |
61 | 61 |
62 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); | 62 void enqueueEvent(PassRefPtrWillBeRawPtr<Event>); |
63 void enqueuePerFrameEvent(PassRefPtrWillBeRawPtr<Event>); | 63 void enqueuePerFrameEvent(PassRefPtrWillBeRawPtr<Event>); |
(...skipping 21 matching lines...) Expand all Loading... |
85 int m_suspendCount; | 85 int m_suspendCount; |
86 WillBeHeapVector<RefPtrWillBeMember<Event> > m_eventQueue; | 86 WillBeHeapVector<RefPtrWillBeMember<Event> > m_eventQueue; |
87 WillBeHeapListHashSet<std::pair<RawPtrWillBeMember<const EventTarget>, const
StringImpl*> > m_perFrameEvents; | 87 WillBeHeapListHashSet<std::pair<RawPtrWillBeMember<const EventTarget>, const
StringImpl*> > m_perFrameEvents; |
88 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > M
ediaQueryListListeners; | 88 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > M
ediaQueryListListeners; |
89 MediaQueryListListeners m_mediaQueryListListeners; | 89 MediaQueryListListeners m_mediaQueryListListeners; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace blink | 92 } // namespace blink |
93 | 93 |
94 #endif // ScriptedAnimationController_h | 94 #endif // ScriptedAnimationController_h |
OLD | NEW |