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

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

Issue 1148563004: Fix all compiler errors found by the new compiler version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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/chrome_proto.js
diff --git a/remoting/webapp/js_proto/chrome_proto.js b/remoting/webapp/js_proto/chrome_proto.js
index 744483fbd694b506cfbc3b391142229a724d3334..6156a50458582a880f2ac6f7d0dafb1536becbd7 100644
--- a/remoting/webapp/js_proto/chrome_proto.js
+++ b/remoting/webapp/js_proto/chrome_proto.js
@@ -7,9 +7,6 @@
// JSCompiler to verify the type-correctness of our code.
/** @type {Object} */
-chrome.app = {};
-
-/** @type {Object} */
chrome.app.runtime = {
/** @type {chrome.Event} */
onLaunched: null
@@ -40,52 +37,37 @@ chrome.app.window = {
};
-/** @type {Object} */
-chrome.runtime = {
- /** @type {Object} */
- lastError: {
- /** @type {string} */
- message: ''
- },
- /** @type {string} */
- id: '',
- /** @return {{name: string, version: string, app: {background: Object}}} */
- getManifest: function() {},
- /** @param {function(Window):void} callback */
- getBackgroundPage: function(callback) {},
- /** @type {chrome.Event} */
- onSuspend: null,
- /** @type {chrome.Event} */
- onSuspendCanceled: null,
- /** @type {chrome.Event} */
- onConnect: null,
- /** @type {chrome.Event} */
- onConnectExternal: null,
- /** @type {chrome.Event} */
- onMessage: null,
- /** @type {chrome.Event} */
- onMessageExternal: null
-};
+/** @type {string} */
+chrome.runtime.id;
-/**
- * @type {?function(string):chrome.runtime.Port}
- */
-chrome.runtime.connectNative = function(name) {};
+/** @return {{name: string, version: string, app: {background: Object}}} */
+chrome.runtime.getManifest = function() {};
-/**
- * @param {{ name: string}} config
- * @return {chrome.runtime.Port}
- */
-chrome.runtime.connect = function(config) {};
+/** @param {function(Window):void} callback */
+chrome.runtime.getBackgroundPage = function(callback) {};
+
+/** @type {chrome.Event} */
+chrome.runtime.onSuspend;
+
+/** @type {chrome.Event} */
+chrome.runtime.onSuspendCanceled;
+
+/** @type {chrome.Event} */
+chrome.runtime.onConnect;
+
+/** @type {chrome.Event} */
+chrome.runtime.onConnectExternal;
+
+/** @type {chrome.Event} */
+chrome.runtime.onMessage;
+
+/** @type {chrome.Event} */
+chrome.runtime.onMessageExternal;
/**
- * @param {string?} extensionId
- * @param {*} message
- * @param {Object=} opt_options
- * @param {function(*)=} opt_callback
+ * @type {?function(string):chrome.runtime.Port}
*/
-chrome.runtime.sendMessage = function(
- extensionId, message, opt_options, opt_callback) {};
+chrome.runtime.connectNative = function(name) {};
/** @constructor */
chrome.runtime.MessageSender = function(){
« no previous file with comments | « remoting/webapp/browser_test/bump_scroll_browser_test.js ('k') | third_party/closure_compiler/compiler/compiler.jar » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698