| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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); |
| OLD | NEW |