Roll src/third_party/WebKit a3b4a2e:7441784 (svn 202551:202552)
[chromium-blink-merge.git] / ui / file_manager / externs / platform.js
blob693489c4dc449712324ccae486f1504cfd683868
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Externs which are common for all chrome packaged apps.
7 /**
8 * @param {string} url
9 * @param {function(!Entry)} successCallback
10 * @param {function(!FileError)=} opt_errorCallback
12 Window.prototype.webkitResolveLocalFileSystemURL =
13 function(url, successCallback, opt_errorCallback) {};
15 /**
16 * Media error: MEDIA_ERR_ABORTED.
17 * @type {number}
18 * @const
19 * @see http://dev.w3.org/html5/spec-author-view/video.html#mediaerror
21 MediaError.MEDIA_ERR_ABORTED = 1;
23 /**
24 * Media error: MEDIA_ERR_NETWORK.
25 * @type {number}
26 * @const
27 * @see http://dev.w3.org/html5/spec-author-view/video.html#mediaerror
29 MediaError.MEDIA_ERR_NETWORK = 2;
31 /**
32 * Media error: MEDIA_ERR_DECODE.
33 * @type {number}
34 * @const
35 * @see http://dev.w3.org/html5/spec-author-view/video.html#mediaerror
37 MediaError.MEDIA_ERR_DECODE = 3;
39 /**
40 * Media error: MEDIA_ERR_SRC_NOT_SUPPORTED.
41 * @type {number}
42 * @const
43 * @see http://dev.w3.org/html5/spec-author-view/video.html#mediaerror
45 MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
47 /**
48 * Animate method.
49 * @param {!Array<!Object>} frames
50 * @param {number} duration
51 * @see http://www.w3.org/TR/web-animations/#widl-Animatable-animate-
52 * AnimationPlayer-object-effect--double-or-AnimationTimingInput--timing
54 HTMLElement.prototype.animate = function(frames, duration) {};