| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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>); |
| 64 void enqueueMediaQueryChangeListeners(WillBeHeapVector<RefPtrWillBeMember<Me
diaQueryListListener> >&); | 64 void enqueueMediaQueryChangeListeners(WillBeHeapVector<RefPtrWillBeMember<Me
diaQueryListListener>>&); |
| 65 | 65 |
| 66 void suspend(); | 66 void suspend(); |
| 67 void resume(); | 67 void resume(); |
| 68 | 68 |
| 69 void dispatchEventsAndCallbacksForPrinting(); | 69 void dispatchEventsAndCallbacksForPrinting(); |
| 70 private: | 70 private: |
| 71 explicit ScriptedAnimationController(Document*); | 71 explicit ScriptedAnimationController(Document*); |
| 72 | 72 |
| 73 void scheduleAnimationIfNeeded(); | 73 void scheduleAnimationIfNeeded(); |
| 74 | 74 |
| 75 void dispatchEvents(const AtomicString& eventInterfaceFilter = AtomicString(
)); | 75 void dispatchEvents(const AtomicString& eventInterfaceFilter = AtomicString(
)); |
| 76 void executeCallbacks(double monotonicTimeNow); | 76 void executeCallbacks(double monotonicTimeNow); |
| 77 void callMediaQueryListListeners(); | 77 void callMediaQueryListListeners(); |
| 78 | 78 |
| 79 typedef PersistentHeapVectorWillBeHeapVector<Member<RequestAnimationFrameCal
lback> > CallbackList; | 79 typedef PersistentHeapVectorWillBeHeapVector<Member<RequestAnimationFrameCal
lback>> CallbackList; |
| 80 CallbackList m_callbacks; | 80 CallbackList m_callbacks; |
| 81 CallbackList m_callbacksToInvoke; // only non-empty while inside executeCall
backs | 81 CallbackList m_callbacksToInvoke; // only non-empty while inside executeCall
backs |
| 82 | 82 |
| 83 RawPtrWillBeMember<Document> m_document; | 83 RawPtrWillBeMember<Document> m_document; |
| 84 CallbackId m_nextCallbackId; | 84 CallbackId m_nextCallbackId; |
| 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>> Me
diaQueryListListeners; |
| 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 |