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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // TODO(jamiewalch): Flesh this out with the correct type when we're a v2 app. | 70 // TODO(jamiewalch): Flesh this out with the correct type when we're a v2 app. |
71 /** @type {remoting.MockStorage} */ | 71 /** @type {remoting.MockStorage} */ |
72 remoting.storage.local = null; | 72 remoting.storage.local = null; |
73 | 73 |
74 /** @type {Object} */ | 74 /** @type {Object} */ |
75 chrome.storage = {}; | 75 chrome.storage = {}; |
76 | 76 |
77 /** @type {remoting.MockStorage} */ | 77 /** @type {remoting.MockStorage} */ |
78 chrome.storage.local; | 78 chrome.storage.local; |
79 | 79 |
| 80 /** @type {remoting.MockStorage} */ |
| 81 chrome.storage.sync; |
| 82 |
80 /** @type {Object} */ | 83 /** @type {Object} */ |
81 chrome.app.runtime = { | 84 chrome.app.runtime = { |
82 /** @type {chrome.Event} */ | 85 /** @type {chrome.Event} */ |
83 onLaunched: null | 86 onLaunched: null |
84 }; | 87 }; |
85 | 88 |
86 /** @type {Object} */ | 89 /** @type {Object} */ |
87 chrome.app.window = { | 90 chrome.app.window = { |
88 /** | 91 /** |
89 * @param {string} name | 92 * @param {string} name |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 * @param {function(chrome.Window):void} callback */ | 165 * @param {function(chrome.Window):void} callback */ |
163 chrome.windows.get = function(id, getInfo, callback) {} | 166 chrome.windows.get = function(id, getInfo, callback) {} |
164 | 167 |
165 /** @constructor */ | 168 /** @constructor */ |
166 chrome.Window = function() { | 169 chrome.Window = function() { |
167 /** @type {string} */ | 170 /** @type {string} */ |
168 this.state = ''; | 171 this.state = ''; |
169 /** @type {string} */ | 172 /** @type {string} */ |
170 this.type = ''; | 173 this.type = ''; |
171 }; | 174 }; |
OLD | NEW |