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

Side by Side Diff: src/js/polyfills/runtime.polyfill.js

Issue 1644913002: Caterpillar now generates app.info.js, a metadata script. Resolves #12. (Closed) Base URL: git@github.com:chromium/caterpillar.git@dependency-script-injection
Patch Set: Response to CR + whitespace fix Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 Google Inc. All Rights Reserved. 1 // Copyright 2015 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }; 95 };
96 96
97 /** 97 /**
98 * Defined during an API method if there was an error. 98 * Defined during an API method if there was an error.
99 */ 99 */
100 chrome.runtime.lastError = null; 100 chrome.runtime.lastError = null;
101 101
102 /** 102 /**
103 * The ID of the app, or null if not applicable. 103 * The ID of the app, or null if not applicable.
104 */ 104 */
105 // TODO(alger): Consider getting this from the Chrome App manifest.
106 chrome.runtime.id = null; 105 chrome.runtime.id = null;
107 106
108 /** 107 /**
109 * Retrieves the JavaScript 'window' object for the background page running 108 * Retrieves the JavaScript 'window' object for the background page running
110 * inside the current app. 109 * inside the current app.
111 * 110 *
112 * Always sets an error in lastError since there is no background page for a 111 * Always sets an error in lastError since there is no background page for a
113 * progressive web app. 112 * progressive web app.
114 * 113 *
115 * @param {function} callback Callback function on success or error. 114 * @param {function} callback Callback function on success or error.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // TODO(alger): Implement or stub onSuspend. 252 // TODO(alger): Implement or stub onSuspend.
254 // TODO(alger): Implement or stub onSuspendCanceled. 253 // TODO(alger): Implement or stub onSuspendCanceled.
255 // TODO(alger): Implement or stub onUpdateAvailable. 254 // TODO(alger): Implement or stub onUpdateAvailable.
256 // TODO(alger): Implement or stub onBrowserUpdateAvailable. 255 // TODO(alger): Implement or stub onBrowserUpdateAvailable.
257 // TODO(alger): Implement or stub onConnect. 256 // TODO(alger): Implement or stub onConnect.
258 // TODO(alger): Implement or stub onConnectExternal. 257 // TODO(alger): Implement or stub onConnectExternal.
259 // TODO(alger): Implement or stub onMessage. 258 // TODO(alger): Implement or stub onMessage.
260 // TODO(alger): Implement or stub onMessageExternal. 259 // TODO(alger): Implement or stub onMessageExternal.
261 // TODO(alger): Implement or stub onRestartRequired. 260 // TODO(alger): Implement or stub onRestartRequired.
262 261
263 }).call(this); 262 }).call(this);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698