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

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

Issue 9860045: Address remaining nits for r129104. (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
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 'use strict'; 5 'use strict';
6 6
7 /** @suppress {duplicate} */ 7 /** @suppress {duplicate} */
8 var remoting = remoting || {}; 8 var remoting = remoting || {};
9 9
10 /** @type {remoting.HostSession} */ remoting.hostSession = null; 10 /** @type {remoting.HostSession} */ remoting.hostSession = null;
11 11
12 /** 12 /**
13 * @enum {string} All error messages from messages.json 13 * @enum {string} All error messages from messages.json
14 */ 14 */
15 remoting.Error = { 15 remoting.Error = {
16 NO_RESPONSE: /*i18n-content*/'ERROR_NO_RESPONSE', 16 NO_RESPONSE: /*i18n-content*/'ERROR_NO_RESPONSE',
17 INVALID_ACCESS_CODE: /*i18n-content*/'ERROR_INVALID_ACCESS_CODE', 17 INVALID_ACCESS_CODE: /*i18n-content*/'ERROR_INVALID_ACCESS_CODE',
18 MISSING_PLUGIN: /*i18n-content*/'ERROR_MISSING_PLUGIN', 18 MISSING_PLUGIN: /*i18n-content*/'ERROR_MISSING_PLUGIN',
19 AUTHENTICATION_FAILED: /*i18n-content*/'ERROR_AUTHENTICATION_FAILED', 19 AUTHENTICATION_FAILED: /*i18n-content*/'ERROR_AUTHENTICATION_FAILED',
20 HOST_IS_OFFLINE: /*i18n-content*/'ERROR_HOST_IS_OFFLINE', 20 HOST_IS_OFFLINE: /*i18n-content*/'ERROR_HOST_IS_OFFLINE',
21 INCOMPATIBLE_PROTOCOL: /*i18n-content*/'ERROR_INCOMPATIBLE_PROTOCOL', 21 INCOMPATIBLE_PROTOCOL: /*i18n-content*/'ERROR_INCOMPATIBLE_PROTOCOL',
22 BAD_PLUGIN_VERSION: /*i18n-content*/'ERROR_BAD_PLUGIN_VERSION', 22 BAD_PLUGIN_VERSION: /*i18n-content*/'ERROR_BAD_PLUGIN_VERSION',
23 NETWORK_FAILURE: /*i18n-content*/'ERROR_NETWORK_FAILURE', 23 NETWORK_FAILURE: /*i18n-content*/'ERROR_NETWORK_FAILURE',
24 HOST_IS_DISABLED: /*i18n-content*/'ERROR_HOST_IS_DISABLED', 24 HOST_OVERLOAD: /*i18n-content*/'ERROR_HOST_OVERLOAD',
25 GENERIC: /*i18n-content*/'ERROR_GENERIC', 25 GENERIC: /*i18n-content*/'ERROR_GENERIC',
26 UNEXPECTED: /*i18n-content*/'ERROR_UNEXPECTED', 26 UNEXPECTED: /*i18n-content*/'ERROR_UNEXPECTED',
27 SERVICE_UNAVAILABLE: /*i18n-content*/'ERROR_SERVICE_UNAVAILABLE' 27 SERVICE_UNAVAILABLE: /*i18n-content*/'ERROR_SERVICE_UNAVAILABLE'
28 }; 28 };
29 29
30 /** 30 /**
31 * Entry point for app initialization. 31 * Entry point for app initialization.
32 */ 32 */
33 remoting.init = function() { 33 remoting.init = function() {
34 remoting.logExtensionInfoAsync_(); 34 remoting.logExtensionInfoAsync_();
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 */ 235 */
236 function getUrlParameters_() { 236 function getUrlParameters_() {
237 var result = {}; 237 var result = {};
238 var parts = window.location.search.substring(1).split('&'); 238 var parts = window.location.search.substring(1).split('&');
239 for (var i = 0; i < parts.length; i++) { 239 for (var i = 0; i < parts.length; i++) {
240 var pair = parts[i].split('='); 240 var pair = parts[i].split('=');
241 result[pair[0]] = decodeURIComponent(pair[1]); 241 result[pair[0]] = decodeURIComponent(pair[1]);
242 } 242 }
243 return result; 243 return result;
244 } 244 }
OLDNEW
« remoting/webapp/client_session.js ('K') | « remoting/webapp/client_session.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698