Index: remoting/webapp/js_proto/dom_proto.js |
diff --git a/remoting/webapp/js_proto/dom_proto.js b/remoting/webapp/js_proto/dom_proto.js |
index 64f330ff79f81f9bd87030d9feaebfdec4bc0139..1e392cb5593d29e43c0c6cc19c554f004b668841 100644 |
--- a/remoting/webapp/js_proto/dom_proto.js |
+++ b/remoting/webapp/js_proto/dom_proto.js |
@@ -167,3 +167,46 @@ var MediaSource = function() {} |
* @return {SourceBuffer} |
*/ |
MediaSource.prototype.addSourceBuffer = function(format) {} |
+ |
+/** |
+ * @constructor |
+ * @param {function(function(*), function(*)) : void} init |
+ */ |
+var Promise = function (init) {}; |
+ |
+/** |
+ * @param {function(*) : void} onFulfill |
+ * @param {function(*) : void} onReject |
+ * @return {Promise} |
+ */ |
+Promise.prototype.then = function (onFulfill, onReject) {}; |
+ |
+/** |
+ * @param {function(*) : void} onReject |
+ * @return {Promise} |
+ */ |
+Promise.prototype['catch'] = function (onReject) {}; |
+ |
+/** |
+ * @param {Array.<Promise>} promises |
+ * @return {Promise} |
+ */ |
+Promise.prototype.race = function (promises) {} |
+ |
+/** |
+ * @param {Array.<Promise>} promises |
+ * @return {Promise} |
+ */ |
+Promise.prototype.all = function (promises) {}; |
+ |
+/** |
+ * @param {*} reason |
+ * @return {Promise} |
+ */ |
+Promise.reject = function (reason) {}; |
+ |
+/** |
+ * @param {*} value |
+ * @return {Promise} |
+ */ |
+Promise.resolve = function (value) {}; |