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

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

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: Fix typo Created 4 years, 9 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 int compositorGroup() const { return m_compositorGroup; } 172 int compositorGroup() const { return m_compositorGroup; }
173 173
174 static bool hasLowerPriority(const Animation* animation1, const Animation* a nimation2) 174 static bool hasLowerPriority(const Animation* animation1, const Animation* a nimation2)
175 { 175 {
176 return animation1->sequenceNumber() < animation2->sequenceNumber(); 176 return animation1->sequenceNumber() < animation2->sequenceNumber();
177 } 177 }
178 178
179 DECLARE_VIRTUAL_TRACE(); 179 DECLARE_VIRTUAL_TRACE();
180 180
181 protected: 181 protected:
182 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; 182 DispatchEventResult dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) ove rride;
183 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) override; 183 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) override;
184 184
185 private: 185 private:
186 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffect*); 186 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffect*);
187 187
188 void clearOutdated(); 188 void clearOutdated();
189 189
190 double effectEnd() const; 190 double effectEnd() const;
191 bool limited(double currentTime) const; 191 bool limited(double currentTime) const;
192 192
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 OwnPtr<CompositorAnimationPlayer> m_compositorPlayer; 297 OwnPtr<CompositorAnimationPlayer> m_compositorPlayer;
298 298
299 bool m_currentTimePending; 299 bool m_currentTimePending;
300 bool m_stateIsBeingUpdated; 300 bool m_stateIsBeingUpdated;
301 }; 301 };
302 302
303 } // namespace blink 303 } // namespace blink
304 304
305 #endif // Animation_h 305 #endif // Animation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698