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

Unified Diff: remoting/webapp/js_proto/dom_proto.js

Issue 803653004: Update Chromoting to use /third_party/closure_compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
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 19d5c6aff63612f411bb74cae36a7357ded5a424..5ad5be259794a7df4e8aba1f1f7ae346a46a83d4 100644
--- a/remoting/webapp/js_proto/dom_proto.js
+++ b/remoting/webapp/js_proto/dom_proto.js
@@ -6,6 +6,16 @@
// WebKit- and Chrome-specific properties and methods. It is used only with
// JSCompiler to verify the type-correctness of our code.
+/**
+* @param {{length: number}|Array.<T>} arr
+* @param {function(T,T):number=} opt_compareFunction
+* @template T
+*/
+Array.sort = function(arr, opt_compareFunction) {};
+
+/** @type {Array.<string>} */
+ClipboardData.prototype.types;
+
/** @type {HTMLElement} */
Document.prototype.activeElement;
@@ -15,12 +25,6 @@ Document.prototype.all;
/** @type {boolean} */
Document.prototype.hidden;
-/** @type {function(string): void} */
-Document.prototype.execCommand = function(command) {};
-
-/** @return {void} Nothing. */
-Document.prototype.webkitCancelFullScreen = function() {};
-
/** @return {void} Nothing. */
Document.prototype.exitPointerLock = function() {};
@@ -33,13 +37,6 @@ Document.prototype.webkitHidden;
/** @type {Element} */
Document.prototype.firstElementChild;
-/** @type {number} */
-Element.ALLOW_KEYBOARD_INPUT;
-
-/** @param {number} flags
-/** @return {void} Nothing. */
-Element.prototype.webkitRequestFullScreen = function(flags) {};
-
/** @return {void} Nothing. */
Element.prototype.requestPointerLock = function() {};
@@ -52,40 +49,17 @@ Element.prototype.localName;
/** @type {string} */
Element.prototype.textContent;
+/** @type {DOMTokenList} */
+Element.prototype.classList;
-/** @constructor
- @extends {HTMLElement} */
-var HTMLEmbedElement = function() { };
+/** @type {boolean} */
+Element.prototype.checked;
-/** @type {number} */
-HTMLEmbedElement.prototype.height;
-
-/** @type {number} */
-HTMLEmbedElement.prototype.width;
/** @type {Window} */
HTMLIFrameElement.prototype.contentWindow;
-/** @type {Object} */
-var JSON = {};
-
-/**
- * @param {string} jsonStr The string to parse.
- * @param {(function(string, *) : *)=} opt_reviver
- * @return {*} The JSON object.
- */
-JSON.parse = function(jsonStr, opt_reviver) {};
-
-/**
- * @param {*} jsonObj Input object.
- * @param {(Array.<string>|(function(string, *) : *)|null)=} opt_replacer
- * @param {(number|string)=} opt_space
- * @return {string} json string which represents jsonObj.
- */
-JSON.stringify = function(jsonObj, opt_replacer, opt_space) {};
-
-
/**
* @param {string} name
* @return {string}
@@ -98,146 +72,13 @@ Node.prototype.value;
/** @type {{top: string, left: string, bottom: string, right: string}} */
Node.prototype.style;
-
-/**
- * @constructor
- * @param {function(Array.<MutationRecord>):void} callback
- */
-var MutationObserver = function(callback) {};
-
-/**
- * @param {Element} element
- * @param {Object} options
- */
-MutationObserver.prototype.observe = function(element, options) {};
-
-
-/** @constructor */
-var MutationRecord = function() {};
-
-/** @type {string} */
-MutationRecord.prototype.attributeName;
-
-/** @type {Element} */
-MutationRecord.prototype.target;
-
-/** @type {string} */
-MutationRecord.prototype.type;
-
-
-/** @type {{getRandomValues: function((Uint16Array|Uint8Array)):void}} */
-Window.prototype.crypto;
-
-/**
- * @param {function():void} callback
- */
-Window.prototype.requestAnimationFrame = function(callback) {};
-
-
-/**
- * @constructor
- * @implements {EventTarget} */
-var EventTargetStub = function() {};
-
-/**
- * @param {string} type
- * @param {(EventListener|function(Event): (boolean|undefined|null))} listener
- * @param {boolean=} opt_useCapture
- */
-EventTargetStub.prototype.addEventListener =
- function(type, listener, opt_useCapture) {}
-
-/**
- * @param {string} type
- * @param {(EventListener|function(Event): (boolean|undefined|null))} listener
- * @param {boolean=} opt_useCapture
- */
-EventTargetStub.prototype.removeEventListener =
- function(type, listener, opt_useCapture) {}
-
-/**
- * @param {Event} event
- */
-EventTargetStub.prototype.dispatchEvent =
- function(event) {}
-
-/**
- * @constructor
- * @extends {EventTargetStub}
- */
-var SourceBuffer = function() {}
-
/** @type {boolean} */
-SourceBuffer.prototype.updating;
+Node.prototype.hidden;
-/** @type {TimeRanges} */
-SourceBuffer.prototype.buffered;
-/**
- * @param {ArrayBuffer} buffer
- */
-SourceBuffer.prototype.appendBuffer = function(buffer) {}
-
-/**
- * @param {number} start
- * @param {number} end
- */
-SourceBuffer.prototype.remove = function(start, end) {}
-
-/**
- * @constructor
- * @extends {EventTargetStub}
- */
-var MediaSource = function() {}
-
-/**
- * @param {string} format
- * @return {SourceBuffer}
- */
-MediaSource.prototype.addSourceBuffer = function(format) {}
-
-/**
- * @constructor
- * @param {function(function(*), function(*)) : void} init
- */
-var Promise = function (init) {};
-
-/**
- * @param {function(?=) : (Promise|void)} onFulfill
- * @param {function(?=) : (Promise|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) {};
+/** @type {{getRandomValues: function(!ArrayBufferView):!ArrayBufferView}} */
+Window.prototype.crypto;
-/**
- * @param {*=} value
- * @return {Promise}
- */
-Promise.resolve = function (value) {};
/**
* @type {DataTransfer}
@@ -277,9 +118,8 @@ Event.prototype.initMouseEvent = function(
ctrlKey, altKey, shiftKey, metaKey,
button, relatedTarget) {};
-/**
- * @param {number} begin
- * @param {number=} end
- * @return {ArrayBuffer}
- */
-ArrayBuffer.prototype.slice = function(begin, end) {};
+/** @type {Object} */
+Event.prototype.data = {};
+
+/** @type {number} */
+XMLHttpRequest.prototype.status = 0;

Powered by Google App Engine
This is Rietveld 408576698