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

Side by Side Diff: Source/core/dom/ScriptedAnimationController.h

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698