OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file contains various hacks needed to inform JSCompiler of various | 5 // This file contains various hacks needed to inform JSCompiler of various |
6 // WebKit- and Chrome-specific properties and methods. It is used only with | 6 // WebKit- and Chrome-specific properties and methods. It is used only with |
7 // JSCompiler to verify the type-correctness of our code. | 7 // JSCompiler to verify the type-correctness of our code. |
8 | 8 |
9 /** @type {HTMLElement} */ | 9 /** @type {HTMLElement} */ |
10 Document.prototype.activeElement; | 10 Document.prototype.activeElement; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 /** @type {Object} */ | 115 /** @type {Object} */ |
116 chrome.app.window = { | 116 chrome.app.window = { |
117 /** | 117 /** |
118 * @param {string} name | 118 * @param {string} name |
119 * @param {Object} parameters | 119 * @param {Object} parameters |
120 */ | 120 */ |
121 create: function(name, parameters) {} | 121 create: function(name, parameters) {} |
122 }; | 122 }; |
123 | 123 |
124 /** @type {Object} */ | 124 /** @type {Object} */ |
125 chrome.experimental = {}; | 125 chrome.identity = { |
126 | |
127 /** @type {Object} */ | |
128 chrome.experimental.identity = { | |
129 /** | 126 /** |
130 * @param {Object.<string>} parameters | 127 * @param {Object.<string>} parameters |
131 * @param {function(string):void} callback | 128 * @param {function(string):void} callback |
132 */ | 129 */ |
133 getAuthToken: function(parameters, callback) {}, | 130 getAuthToken: function(parameters, callback) {}, |
134 /** | 131 /** |
135 * @param {Object.<string>} parameters | 132 * @param {Object.<string>} parameters |
136 * @param {function(string):void} callback | 133 * @param {function(string):void} callback |
137 */ | 134 */ |
138 launchWebAuthFlow: function(parameters, callback) {} | 135 launchWebAuthFlow: function(parameters, callback) {} |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 * @param {Object.<string>} permissions | 216 * @param {Object.<string>} permissions |
220 * @param {function(boolean):void} callback | 217 * @param {function(boolean):void} callback |
221 */ | 218 */ |
222 contains: function(permissions, callback) {}, | 219 contains: function(permissions, callback) {}, |
223 /** | 220 /** |
224 * @param {Object.<string>} permissions | 221 * @param {Object.<string>} permissions |
225 * @param {function(boolean):void} callback | 222 * @param {function(boolean):void} callback |
226 */ | 223 */ |
227 request: function(permissions, callback) {} | 224 request: function(permissions, callback) {} |
228 }; | 225 }; |
OLD | NEW |