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
3 // found in the LICENSE file.
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
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.
10 console
.error('Proto file should not be executed.');
12 /** @type {{background: Object}} */
13 chrome
.runtime
.Manifest
.prototype.app
;
15 /** @type {chrome.app.window.Bounds} */
16 chrome
.app
.window
.AppWindow
.prototype.outerBounds
;
18 /** @type {chrome.app.window.Bounds} */
19 chrome
.app
.window
.AppWindow
.prototype.innerBounds
;
22 chrome
.app
.window
.AppWindow
.prototype.id
;
25 * @param {{rects: Array<ClientRect>}} rects
27 chrome
.app
.window
.AppWindow
.prototype.setShape = function(rects
) {};
29 /** @type {boolean} */
30 OnClickData
.prototype.checked
;
35 chrome
.socket
.SendInfo = function() {};
38 chrome
.socket
.SendInfo
.prototype.resultCode
;
41 chrome
.socket
.SendInfo
.prototype.bytesSent
;
43 /** @param {function(FileWriter):void} callback */
44 Entry
.prototype.createWriter = function(callback
) {};