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

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

Issue 1942723004: Change EventTarget callback APIs for add/RemoveEventListenerInternal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win32 signed/unsigned issue Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/Animation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return animation1->sequenceNumber() < animation2->sequenceNumber(); 177 return animation1->sequenceNumber() < animation2->sequenceNumber();
178 } 178 }
179 179
180 bool effectSuppressed() const { return m_effectSuppressed; } 180 bool effectSuppressed() const { return m_effectSuppressed; }
181 void setEffectSuppressed(bool); 181 void setEffectSuppressed(bool);
182 182
183 DECLARE_VIRTUAL_TRACE(); 183 DECLARE_VIRTUAL_TRACE();
184 184
185 protected: 185 protected:
186 DispatchEventResult dispatchEventInternal(Event*) override; 186 DispatchEventResult dispatchEventInternal(Event*) override;
187 bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&) override; 187 void addedEventListener(const AtomicString& eventType, RegisteredEventListen er&) override;
188 188
189 private: 189 private:
190 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffect*); 190 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffect*);
191 191
192 void clearOutdated(); 192 void clearOutdated();
193 193
194 double effectEnd() const; 194 double effectEnd() const;
195 bool limited(double currentTime) const; 195 bool limited(double currentTime) const;
196 196
197 AnimationPlayState calculatePlayState(); 197 AnimationPlayState calculatePlayState();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 bool m_currentTimePending; 303 bool m_currentTimePending;
304 bool m_stateIsBeingUpdated; 304 bool m_stateIsBeingUpdated;
305 305
306 bool m_effectSuppressed; 306 bool m_effectSuppressed;
307 }; 307 };
308 308
309 } // namespace blink 309 } // namespace blink
310 310
311 #endif // Animation_h 311 #endif // Animation_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/Animation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698