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

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

Issue 2785303002: Post task when rejecting Animation promises inside ScriptForbiddenScope (Closed)
Patch Set: Add layout test Created 3 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
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void DetachCompositedLayers(); 231 void DetachCompositedLayers();
232 // CompositorAnimationDelegate implementation. 232 // CompositorAnimationDelegate implementation.
233 void NotifyAnimationStarted(double monotonic_time, int group) override; 233 void NotifyAnimationStarted(double monotonic_time, int group) override;
234 void NotifyAnimationFinished(double monotonic_time, int group) override {} 234 void NotifyAnimationFinished(double monotonic_time, int group) override {}
235 void NotifyAnimationAborted(double monotonic_time, int group) override {} 235 void NotifyAnimationAborted(double monotonic_time, int group) override {}
236 236
237 using AnimationPromise = ScriptPromiseProperty<Member<Animation>, 237 using AnimationPromise = ScriptPromiseProperty<Member<Animation>,
238 Member<Animation>, 238 Member<Animation>,
239 Member<DOMException>>; 239 Member<DOMException>>;
240 void ResolvePromiseMaybeAsync(AnimationPromise*); 240 void ResolvePromiseMaybeAsync(AnimationPromise*);
241 void RejectAndResetPromise(AnimationPromise*);
242 void RejectAndResetPromiseMaybeAsync(AnimationPromise*);
241 243
242 String id_; 244 String id_;
243 245
244 AnimationPlayState play_state_; 246 AnimationPlayState play_state_;
245 double playback_rate_; 247 double playback_rate_;
246 double start_time_; 248 double start_time_;
247 double hold_time_; 249 double hold_time_;
248 250
249 unsigned sequence_number_; 251 unsigned sequence_number_;
250 252
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 353
352 bool current_time_pending_; 354 bool current_time_pending_;
353 bool state_is_being_updated_; 355 bool state_is_being_updated_;
354 356
355 bool effect_suppressed_; 357 bool effect_suppressed_;
356 }; 358 };
357 359
358 } // namespace blink 360 } // namespace blink
359 361
360 #endif // Animation_h 362 #endif // Animation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698