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-specific properties and methods. It is used only with JSCompiler | 6 // WebKit-specific properties and methods. It is used only with JSCompiler |
7 // to verify the type-correctness of our code. | 7 // to verify the type-correctness of our code. |
8 | 8 |
9 /** @type Array.<HTMLElement> */ | 9 /** @type Array.<HTMLElement> */ |
10 Document.prototype.all; | 10 Document.prototype.all; |
11 | 11 |
12 /** @type {function(string): void} */ | 12 /** @type {function(string): void} */ |
13 Document.prototype.execCommand = function(command) {}; | 13 Document.prototype.execCommand = function(command) {}; |
14 | 14 |
15 /** @return {void} Nothing. */ | 15 /** @return {void} Nothing. */ |
16 Document.prototype.webkitCancelFullScreen = function() {}; | 16 Document.prototype.webkitCancelFullScreen = function() {}; |
17 | 17 |
18 /** @type {boolean} */ | 18 /** @type {boolean} */ |
19 Document.prototype.webkitIsFullScreen; | 19 Document.prototype.webkitIsFullScreen; |
20 | 20 |
21 /** @type {number} */ | 21 /** @type {number} */ |
22 Element.ALLOW_KEYBOARD_INPUT; | 22 Element.ALLOW_KEYBOARD_INPUT; |
23 | 23 |
24 /** @param {number} flags | 24 /** @param {number} flags |
25 /** @return {void} Nothing. */ | 25 /** @return {void} Nothing. */ |
26 Element.prototype.webkitRequestFullScreen = function(flags) {}; | 26 Element.prototype.webkitRequestFullScreen = function(flags) {}; |
27 | 27 |
28 /** @type {{getRandomValues: function(Uint16Array):void}} */ | 28 /** @type {{getRandomValues: function(Uint16Array):void}} */ |
29 Window.prototype.crypto; | 29 Window.prototype.crypto; |
| 30 |
| 31 // This string is replaced with the actual value in build-webapp.py. |
| 32 var OAUTH2_USE_OFFICIAL_CLIENT_ID = false; |
OLD | NEW |