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

Side by Side Diff: third_party/closure_compiler/externs/web_animations.js

Issue 2602693002: Files app: Compile custom elements. (Closed)
Patch Set: Address review comments. Created 3 years, 11 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Minimal Closure externs for Web Animations. 6 * @fileoverview Minimal Closure externs for Web Animations.
7 * "Minimal" because the web-animations spec is in flux, Chromium's support is 7 * "Minimal" because the web-animations spec is in flux, Chromium's support is
8 * changing, and the intended consumer (MD Settings) is actually using the 8 * changing, and the intended consumer (MD Settings) is actually using the
9 * web-animations-js polyfill for the time being. 9 * web-animations-js polyfill for the time being.
10 * @see https://w3c.github.io/web-animations/#programming-interface 10 * @see https://w3c.github.io/web-animations/#programming-interface
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 /** @type {?number} */ 168 /** @type {?number} */
169 Animation.prototype.startTime; 169 Animation.prototype.startTime;
170 170
171 /** @type {?number} */ 171 /** @type {?number} */
172 Animation.prototype.currentTime; 172 Animation.prototype.currentTime;
173 173
174 /** @type {number} */ 174 /** @type {number} */
175 Animation.prototype.playbackRate; 175 Animation.prototype.playbackRate;
176 176
177 /** @type {!Promise<!Animation>} */
178 Animation.prototype.finished;
179
177 Animation.prototype.finish = function() {}; 180 Animation.prototype.finish = function() {};
178 181
179 Animation.prototype.play = function() {}; 182 Animation.prototype.play = function() {};
180 183
181 Animation.prototype.pause = function() {}; 184 Animation.prototype.pause = function() {};
182 185
183 Animation.prototype.reverse = function() {}; 186 Animation.prototype.reverse = function() {};
184 187
185 Animation.prototype.cancel = function() {}; 188 Animation.prototype.cancel = function() {};
186 189
(...skipping 17 matching lines...) Expand all
204 var Animatable = function() {}; 207 var Animatable = function() {};
205 208
206 Animatable.prototype = /** @lends {Element.prototype} */({ 209 Animatable.prototype = /** @lends {Element.prototype} */({
207 /** 210 /**
208 * @param {?Array<Object>|Object} effect 211 * @param {?Array<Object>|Object} effect
209 * @param {number|!KeyframeEffectOptions=} opt_timing 212 * @param {number|!KeyframeEffectOptions=} opt_timing
210 * @return {!Animation} 213 * @return {!Animation}
211 */ 214 */
212 animate: function(effect, opt_timing) {}, 215 animate: function(effect, opt_timing) {},
213 }); 216 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698