| 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 // Contains all the settings that may need massaging by the build script. | 5 // Contains all the settings that may need massaging by the build script. |
| 6 // Keeping all that centralized here allows us to use symlinks for the other | 6 // Keeping all that centralized here allows us to use symlinks for the other |
| 7 // files making for a faster compile/run cycle when only modifying HTML/JS. | 7 // files making for a faster compile/run cycle when only modifying HTML/JS. |
| 8 | 8 |
| 9 'use strict'; | 9 'use strict'; |
| 10 | 10 |
| 11 /** @suppress {duplicate} */ | 11 /** @suppress {duplicate} */ |
| 12 var remoting = remoting || {}; | 12 var remoting = remoting || {}; |
| 13 | 13 |
| 14 /** @type {remoting.Settings} */ | 14 /** @type {remoting.Settings} */ |
| 15 remoting.settings = null; | 15 remoting.settings = null; |
| 16 /** @constructor */ | 16 /** @constructor */ |
| 17 remoting.Settings = function() {}; | 17 remoting.Settings = function() {}; |
| 18 | 18 |
| 19 // The settings on this file are automatically substituted by build-webapp.py. | 19 // The settings on this file are automatically substituted by build-webapp.py. |
| 20 // Do not override them manually, except for running local tests. | 20 // Do not override them manually, except for running local tests. |
| 21 | 21 |
| 22 /** @type {string} API client ID.*/ | 22 /** @type {string} API client ID.*/ |
| 23 remoting.Settings.prototype.OAUTH2_CLIENT_ID = 'API_CLIENT_ID'; | 23 remoting.Settings.prototype.OAUTH2_CLIENT_ID = 'API_CLIENT_ID'; |
| 24 /** @type {string} API client secret.*/ | 24 /** @type {string} API client secret.*/ |
| 25 remoting.Settings.prototype.OAUTH2_CLIENT_SECRET = 'API_CLIENT_SECRET'; | 25 remoting.Settings.prototype.OAUTH2_CLIENT_SECRET = 'API_CLIENT_SECRET'; |
| 26 /** @type {string} Google API Key.*/ |
| 27 remoting.Settings.prototype.GOOGLE_API_KEY = 'API_KEY'; |
| 26 | 28 |
| 27 /** @type {string} Base URL for OAuth2 authentication. */ | 29 /** @type {string} Base URL for OAuth2 authentication. */ |
| 28 remoting.Settings.prototype.OAUTH2_BASE_URL = 'OAUTH2_BASE_URL'; | 30 remoting.Settings.prototype.OAUTH2_BASE_URL = 'OAUTH2_BASE_URL'; |
| 29 /** @type {string} Base URL for the OAuth2 API. */ | 31 /** @type {string} Base URL for the OAuth2 API. */ |
| 30 remoting.Settings.prototype.OAUTH2_API_BASE_URL = 'OAUTH2_API_BASE_URL'; | 32 remoting.Settings.prototype.OAUTH2_API_BASE_URL = 'OAUTH2_API_BASE_URL'; |
| 31 /** @type {string} Base URL for the Remoting Directory REST API. */ | 33 /** @type {string} Base URL for the Remoting Directory REST API. */ |
| 32 remoting.Settings.prototype.DIRECTORY_API_BASE_URL = 'DIRECTORY_API_BASE_URL'; | 34 remoting.Settings.prototype.DIRECTORY_API_BASE_URL = 'DIRECTORY_API_BASE_URL'; |
| 33 /** @type {string} URL for the talk gadget web service. */ | 35 /** @type {string} URL for the talk gadget web service. */ |
| 34 remoting.Settings.prototype.TALK_GADGET_URL = 'TALK_GADGET_URL'; | 36 remoting.Settings.prototype.TALK_GADGET_URL = 'TALK_GADGET_URL'; |
| 35 | 37 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Third party authentication settings. | 74 // Third party authentication settings. |
| 73 /** @type {string} The third party auth redirect URI. */ | 75 /** @type {string} The third party auth redirect URI. */ |
| 74 remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI = | 76 remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI = |
| 75 'THIRD_PARTY_AUTH_REDIRECT_URL'; | 77 'THIRD_PARTY_AUTH_REDIRECT_URL'; |
| 76 | 78 |
| 77 // 'native', 'nacl' or 'pnacl'. | 79 // 'native', 'nacl' or 'pnacl'. |
| 78 remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE'; | 80 remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE'; |
| 79 | 81 |
| 80 /** @const {boolean} If true, use GCD instead of Chromoting registry. */ | 82 /** @const {boolean} If true, use GCD instead of Chromoting registry. */ |
| 81 remoting.Settings.prototype.USE_GCD = !!'USE_GCD'; | 83 remoting.Settings.prototype.USE_GCD = !!'USE_GCD'; |
| OLD | NEW |