| OLD | NEW |
| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 Animation.prototype.finish = function() {}; | 180 Animation.prototype.finish = function() {}; |
| 181 | 181 |
| 182 Animation.prototype.play = function() {}; | 182 Animation.prototype.play = function() {}; |
| 183 | 183 |
| 184 Animation.prototype.pause = function() {}; | 184 Animation.prototype.pause = function() {}; |
| 185 | 185 |
| 186 Animation.prototype.reverse = function() {}; | 186 Animation.prototype.reverse = function() {}; |
| 187 | 187 |
| 188 Animation.prototype.cancel = function() {}; | 188 Animation.prototype.cancel = function() {}; |
| 189 | 189 |
| 190 /** | |
| 191 * @param {boolean=} opt_useCapture | |
| 192 * @override | |
| 193 */ | |
| 194 Animation.prototype.addEventListener = function( | |
| 195 type, listener, opt_useCapture) {}; | |
| 196 | |
| 197 /** @type {EventHandler} */ | 190 /** @type {EventHandler} */ |
| 198 Animation.prototype.onfinish; | 191 Animation.prototype.onfinish; |
| 199 | 192 |
| 200 /** @type {EventHandler} */ | 193 /** @type {EventHandler} */ |
| 201 Animation.prototype.oncancel; | 194 Animation.prototype.oncancel; |
| 202 | 195 |
| 203 /** | 196 /** |
| 204 * @interface | 197 * @interface |
| 205 * @see https://w3c.github.io/web-animations/#animatable | 198 * @see https://w3c.github.io/web-animations/#animatable |
| 206 */ | 199 */ |
| 207 var Animatable = function() {}; | 200 var Animatable = function() {}; |
| 208 | 201 |
| 209 Animatable.prototype = /** @lends {Element.prototype} */({ | 202 Animatable.prototype = /** @lends {Element.prototype} */({ |
| 210 /** | 203 /** |
| 211 * @param {?Array<Object>|Object} effect | 204 * @param {?Array<Object>|Object} effect |
| 212 * @param {number|!KeyframeEffectOptions=} opt_timing | 205 * @param {number|!KeyframeEffectOptions=} opt_timing |
| 213 * @return {!Animation} | 206 * @return {!Animation} |
| 214 */ | 207 */ |
| 215 animate: function(effect, opt_timing) {}, | 208 animate: function(effect, opt_timing) {}, |
| 216 }); | 209 }); |
| OLD | NEW |