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

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

Issue 2808013002: Resolve promises synchronously sometimes (Closed)
Patch Set: Created 3 years, 8 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 void AttachCompositedLayers(); 230 void AttachCompositedLayers();
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 ResolvePromiseAsync(AnimationPromise*); 240 void ResolvePromiseMaybeAsync(AnimationPromise*);
241 241
242 String id_; 242 String id_;
243 243
244 AnimationPlayState play_state_; 244 AnimationPlayState play_state_;
245 double playback_rate_; 245 double playback_rate_;
246 double start_time_; 246 double start_time_;
247 double hold_time_; 247 double hold_time_;
248 248
249 unsigned sequence_number_; 249 unsigned sequence_number_;
250 250
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 bool current_time_pending_; 352 bool current_time_pending_;
353 bool state_is_being_updated_; 353 bool state_is_being_updated_;
354 354
355 bool effect_suppressed_; 355 bool effect_suppressed_;
356 }; 356 };
357 357
358 } // namespace blink 358 } // namespace blink
359 359
360 #endif // Animation_h 360 #endif // Animation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698