Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: remoting/webapp/jscompiler_hacks.js

Issue 10206007: Make JS compiler happy about OAUTH2_USE_OFFICEIAL_CLIENT_ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698