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 the closure compiler of | 5 // This file contains various hacks needed to inform the closure compiler of |
6 // various Chrome-specific properties and methods that is not specified in | 6 // various Chrome-specific properties and methods that is not specified in |
7 // /third_part/closure_compiler/externs/chrome_externsions.js. It is used only | 7 // /third_part/closure_compiler/externs/chrome_externsions.js. It is used only |
8 // with the closure compiler to verify the type-correctness of our code. | 8 // with the closure compiler to verify the type-correctness of our code. |
9 | 9 |
10 console.error('Proto file should not be executed.'); | 10 console.error('Proto file should not be executed.'); |
11 | 11 |
12 /** @type {{background: Object}} */ | 12 /** @type {{background: Object}} */ |
13 chrome.runtime.Manifest.prototype.app; | 13 chrome.runtime.Manifest.prototype.app; |
14 | 14 |
15 /** @type {chrome.app.window.Bounds} */ | |
16 chrome.app.window.AppWindow.prototype.outerBounds; | |
17 | |
18 /** @type {chrome.app.window.Bounds} */ | |
19 chrome.app.window.AppWindow.prototype.innerBounds; | |
20 | |
21 /** @type {string} */ | 15 /** @type {string} */ |
22 chrome.app.window.AppWindow.prototype.id; | 16 chrome.app.window.AppWindow.prototype.id; |
23 | 17 |
24 /** | 18 /** |
25 * @param {{rects: Array<ClientRect>}} rects | 19 * @param {{rects: Array<ClientRect>}} rects |
26 */ | 20 */ |
27 chrome.app.window.AppWindow.prototype.setShape = function(rects) {}; | 21 chrome.app.window.AppWindow.prototype.setShape = function(rects) {}; |
28 | 22 |
29 /** @type {boolean} */ | 23 /** @type {boolean} */ |
30 OnClickData.prototype.checked; | 24 OnClickData.prototype.checked; |
31 | 25 |
32 /** | 26 /** |
33 * @constructor | 27 * @constructor |
34 */ | 28 */ |
35 chrome.socket.SendInfo = function() {}; | 29 chrome.socket.SendInfo = function() {}; |
36 | 30 |
37 /** @type {number} */ | 31 /** @type {number} */ |
38 chrome.socket.SendInfo.prototype.resultCode; | 32 chrome.socket.SendInfo.prototype.resultCode; |
39 | 33 |
40 /** @type {number} */ | 34 /** @type {number} */ |
41 chrome.socket.SendInfo.prototype.bytesSent; | 35 chrome.socket.SendInfo.prototype.bytesSent; |
42 | 36 |
43 /** @param {function(FileWriter):void} callback */ | 37 /** @param {function(FileWriter):void} callback */ |
44 Entry.prototype.createWriter = function(callback) {}; | 38 Entry.prototype.createWriter = function(callback) {}; |
OLD | NEW |