Commit c08f89f5 authored by garykac's avatar garykac Committed by Commit bot

[Chromoting] Additional prototypes for jscompile.

BUG=

Review URL: https://codereview.chromium.org/613313002

Cr-Commit-Position: refs/heads/master@{#297492}
parent cd62dd51
...@@ -55,8 +55,12 @@ chrome.runtime = { ...@@ -55,8 +55,12 @@ chrome.runtime = {
/** @type {string} */ /** @type {string} */
message: '' message: ''
}, },
/** @return {{version: string, app: {background: Object}}} */ /** @type {string} */
id: '',
/** @return {{name: string, version: string, app: {background: Object}}} */
getManifest: function() {}, getManifest: function() {},
/** @param {function(Window):void} callback */
getBackgroundPage: function(callback) {},
/** @type {chrome.Event} */ /** @type {chrome.Event} */
onSuspend: null, onSuspend: null,
/** @type {chrome.Event} */ /** @type {chrome.Event} */
...@@ -145,6 +149,11 @@ chrome.i18n = {}; ...@@ -145,6 +149,11 @@ chrome.i18n = {};
*/ */
chrome.i18n.getMessage = function(messageName, opt_args) {}; chrome.i18n.getMessage = function(messageName, opt_args) {};
/**
* @return {string}
*/
chrome.i18n.getUILanguage = function() {};
/** @type {Object} */ /** @type {Object} */
chrome.storage = {}; chrome.storage = {};
...@@ -359,10 +368,13 @@ var AppWindow = function() { ...@@ -359,10 +368,13 @@ var AppWindow = function() {
AppWindow.prototype.close = function() {}; AppWindow.prototype.close = function() {};
AppWindow.prototype.drawAttention = function() {}; AppWindow.prototype.drawAttention = function() {};
AppWindow.prototype.focus = function() {};
AppWindow.prototype.maximize = function() {}; AppWindow.prototype.maximize = function() {};
AppWindow.prototype.minimize = function() {}; AppWindow.prototype.minimize = function() {};
AppWindow.prototype.restore = function() {}; AppWindow.prototype.restore = function() {};
AppWindow.prototype.show = function() {}; AppWindow.prototype.show = function() {};
/** @return {boolean} */
AppWindow.prototype.isMinimized = function() {};
AppWindow.prototype.fullscreen = function() {}; AppWindow.prototype.fullscreen = function() {};
/** @return {boolean} */ /** @return {boolean} */
AppWindow.prototype.isFullscreen = function() {}; AppWindow.prototype.isFullscreen = function() {};
......
...@@ -228,6 +228,11 @@ Promise.reject = function (reason) {}; ...@@ -228,6 +228,11 @@ Promise.reject = function (reason) {};
*/ */
Promise.resolve = function (value) {}; Promise.resolve = function (value) {};
/**
* @type {DataTransfer}
*/
Event.prototype.dataTransfer = null;
/** /**
* @param {string} type * @param {string} type
* @param {boolean} canBubble * @param {boolean} canBubble
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment