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

Side by Side Diff: third_party/WebKit/Source/core/animation/Animation.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class ExceptionState; 51 class ExceptionState;
52 class WebCompositorAnimationPlayer; 52 class WebCompositorAnimationPlayer;
53 53
54 class CORE_EXPORT Animation final 54 class CORE_EXPORT Animation final
55 : public RefCountedGarbageCollectedEventTargetWithInlineData<Animation> 55 : public RefCountedGarbageCollectedEventTargetWithInlineData<Animation>
56 , public ActiveDOMObject 56 , public ActiveDOMObject
57 , public WebCompositorAnimationDelegate 57 , public WebCompositorAnimationDelegate
58 , public WebCompositorAnimationPlayerClient { 58 , public WebCompositorAnimationPlayerClient {
59 DEFINE_WRAPPERTYPEINFO(); 59 DEFINE_WRAPPERTYPEINFO();
60 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(Animation); 60 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(Animation);
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Animation); 61 USING_GARBAGE_COLLECTED_MIXIN(Animation);
62 public: 62 public:
63 enum AnimationPlayState { 63 enum AnimationPlayState {
64 Idle, 64 Idle,
65 Pending, 65 Pending,
66 Running, 66 Running,
67 Paused, 67 Paused,
68 Finished 68 Finished
69 }; 69 };
70 70
71 static Animation* create(AnimationEffect*, AnimationTimeline*); 71 static Animation* create(AnimationEffect*, AnimationTimeline*);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 int compositorGroup() const { return m_compositorGroup; } 171 int compositorGroup() const { return m_compositorGroup; }
172 172
173 static bool hasLowerPriority(const Animation* animation1, const Animation* a nimation2) 173 static bool hasLowerPriority(const Animation* animation1, const Animation* a nimation2)
174 { 174 {
175 return animation1->sequenceNumber() < animation2->sequenceNumber(); 175 return animation1->sequenceNumber() < animation2->sequenceNumber();
176 } 176 }
177 177
178 DECLARE_VIRTUAL_TRACE(); 178 DECLARE_VIRTUAL_TRACE();
179 179
180 protected: 180 protected:
181 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; 181 bool dispatchEventInternal(RawPtr<Event>) override;
182 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) override; 182 bool addEventListenerInternal(const AtomicString& eventType, RawPtr<EventLis tener>, const EventListenerOptions&) override;
183 183
184 private: 184 private:
185 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffect*); 185 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffect*);
186 186
187 void clearOutdated(); 187 void clearOutdated();
188 188
189 double effectEnd() const; 189 double effectEnd() const;
190 bool limited(double currentTime) const; 190 bool limited(double currentTime) const;
191 191
192 AnimationPlayState calculatePlayState(); 192 AnimationPlayState calculatePlayState();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 bool m_isCompositedAnimationDisabledForTesting; 240 bool m_isCompositedAnimationDisabledForTesting;
241 241
242 // This indicates timing information relevant to the animation's effect 242 // This indicates timing information relevant to the animation's effect
243 // has changed by means other than the ordinary progression of time 243 // has changed by means other than the ordinary progression of time
244 bool m_outdated; 244 bool m_outdated;
245 245
246 bool m_finished; 246 bool m_finished;
247 // Holds a 'finished' event queued for asynchronous dispatch via the 247 // Holds a 'finished' event queued for asynchronous dispatch via the
248 // ScriptedAnimationController. This object remains active until the 248 // ScriptedAnimationController. This object remains active until the
249 // event is actually dispatched. 249 // event is actually dispatched.
250 RefPtrWillBeMember<Event> m_pendingFinishedEvent; 250 Member<Event> m_pendingFinishedEvent;
251 251
252 enum CompositorAction { 252 enum CompositorAction {
253 None, 253 None,
254 Pause, 254 Pause,
255 Start, 255 Start,
256 PauseThenStart 256 PauseThenStart
257 }; 257 };
258 258
259 class CompositorState { 259 class CompositorState {
260 USING_FAST_MALLOC(CompositorState); 260 USING_FAST_MALLOC(CompositorState);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; 301 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer;
302 302
303 bool m_currentTimePending; 303 bool m_currentTimePending;
304 bool m_stateIsBeingUpdated; 304 bool m_stateIsBeingUpdated;
305 }; 305 };
306 306
307 } // namespace blink 307 } // namespace blink
308 308
309 #endif // Animation_h 309 #endif // Animation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698