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 {Object} */ | 9 /** @type {Object} */ |
10 var chrome = {}; | 10 var chrome = {}; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 /** @type {Object} */ | 53 /** @type {Object} */ |
54 lastError: { | 54 lastError: { |
55 /** @type {string} */ | 55 /** @type {string} */ |
56 message: '' | 56 message: '' |
57 }, | 57 }, |
58 /** @return {{version: string, app: {background: Object}}} */ | 58 /** @return {{version: string, app: {background: Object}}} */ |
59 getManifest: function() {}, | 59 getManifest: function() {}, |
60 /** @type {chrome.Event} */ | 60 /** @type {chrome.Event} */ |
61 onSuspend: null, | 61 onSuspend: null, |
62 /** @type {chrome.Event} */ | 62 /** @type {chrome.Event} */ |
| 63 onSuspendCanceled: null, |
| 64 /** @type {chrome.Event} */ |
63 onConnect: null, | 65 onConnect: null, |
64 /** @type {chrome.Event} */ | 66 /** @type {chrome.Event} */ |
65 onConnectExternal: null, | 67 onConnectExternal: null, |
66 /** @type {chrome.Event} */ | 68 /** @type {chrome.Event} */ |
67 onMessage: null, | 69 onMessage: null, |
68 /** @type {chrome.Event} */ | 70 /** @type {chrome.Event} */ |
69 onMessageExternal: null | 71 onMessageExternal: null |
70 }; | 72 }; |
71 | 73 |
72 /** | 74 /** |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 this.height = 0; | 378 this.height = 0; |
377 /** @type {number} */ | 379 /** @type {number} */ |
378 this.top = 0; | 380 this.top = 0; |
379 /** @type {number} */ | 381 /** @type {number} */ |
380 this.bottom = 0; | 382 this.bottom = 0; |
381 /** @type {number} */ | 383 /** @type {number} */ |
382 this.left = 0; | 384 this.left = 0; |
383 /** @type {number} */ | 385 /** @type {number} */ |
384 this.right = 0; | 386 this.right = 0; |
385 }; | 387 }; |
OLD | NEW |