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

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

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 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
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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * A class of server log entries. 7 * A class of server log entries.
8 * 8 *
9 * Any changes to the values here need to be coordinated with the host and 9 * Any changes to the values here need to be coordinated with the host and
10 * server/log proto code. 10 * server/log proto code.
11 * See remoting/signaling/server_log_entry.{cc|h} 11 * See remoting/signaling/server_log_entry.{cc|h}
12 */ 12 */
13 13
14 'use strict'; 14 'use strict';
15 15
16 /** @suppress {duplicate} */ 16 /** @suppress {duplicate} */
17 var remoting = remoting || {}; 17 var remoting = remoting || {};
18 18
19 /** 19 /**
20 * @private 20 * @private
21 * @constructor 21 * @constructor
22 */ 22 */
23 remoting.ServerLogEntry = function() { 23 remoting.ServerLogEntry = function() {
24 /** @type Object.<string, string> */ this.dict = {}; 24 /** @type Object<string, string> */ this.dict = {};
25 }; 25 };
26 26
27 /** @private */ 27 /** @private */
28 remoting.ServerLogEntry.KEY_EVENT_NAME_ = 'event-name'; 28 remoting.ServerLogEntry.KEY_EVENT_NAME_ = 'event-name';
29 /** @private */ 29 /** @private */
30 remoting.ServerLogEntry.VALUE_EVENT_NAME_SESSION_STATE_ = 'session-state'; 30 remoting.ServerLogEntry.VALUE_EVENT_NAME_SESSION_STATE_ = 'session-state';
31 /** @private */ 31 /** @private */
32 remoting.ServerLogEntry.VALUE_EVENT_NAME_SIGNAL_STRATEGY_PROGRESS_ = 32 remoting.ServerLogEntry.VALUE_EVENT_NAME_SIGNAL_STRATEGY_PROGRESS_ =
33 'signal-strategy-progress'; 33 'signal-strategy-progress';
34 /** @private */ 34 /** @private */
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 stanza += '/>'; 202 stanza += '/>';
203 return stanza; 203 return stanza;
204 }; 204 };
205 205
206 /** 206 /**
207 * Prints this object on the debug log. 207 * Prints this object on the debug log.
208 * 208 *
209 * @param {number} indentLevel the indentation level 209 * @param {number} indentLevel the indentation level
210 */ 210 */
211 remoting.ServerLogEntry.prototype.toDebugLog = function(indentLevel) { 211 remoting.ServerLogEntry.prototype.toDebugLog = function(indentLevel) {
212 /** @type Array.<string> */ var fields = []; 212 /** @type Array<string> */ var fields = [];
213 for (var key in this.dict) { 213 for (var key in this.dict) {
214 fields.push(key + ': ' + this.dict[key]); 214 fields.push(key + ': ' + this.dict[key]);
215 } 215 }
216 console.log(Array(indentLevel+1).join(" ") + fields.join(', ')); 216 console.log(Array(indentLevel+1).join(" ") + fields.join(', '));
217 }; 217 };
218 218
219 /** 219 /**
220 * Makes a log entry for a change of client session state. 220 * Makes a log entry for a change of client session state.
221 * 221 *
222 * @param {remoting.ClientSession.State} state 222 * @param {remoting.ClientSession.State} state
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 case remoting.DesktopConnectedView.Mode.IT2ME: 508 case remoting.DesktopConnectedView.Mode.IT2ME:
509 return remoting.ServerLogEntry.VALUE_MODE_IT2ME_; 509 return remoting.ServerLogEntry.VALUE_MODE_IT2ME_;
510 case remoting.DesktopConnectedView.Mode.ME2ME: 510 case remoting.DesktopConnectedView.Mode.ME2ME:
511 return remoting.ServerLogEntry.VALUE_MODE_ME2ME_; 511 return remoting.ServerLogEntry.VALUE_MODE_ME2ME_;
512 case remoting.DesktopConnectedView.Mode.APP_REMOTING: 512 case remoting.DesktopConnectedView.Mode.APP_REMOTING:
513 return remoting.ServerLogEntry.VALUE_MODE_APP_REMOTING_; 513 return remoting.ServerLogEntry.VALUE_MODE_APP_REMOTING_;
514 default: 514 default:
515 return remoting.ServerLogEntry.VALUE_MODE_UNKNOWN_; 515 return remoting.ServerLogEntry.VALUE_MODE_UNKNOWN_;
516 } 516 }
517 }; 517 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/paired_client_manager.js ('k') | remoting/webapp/crd/js/session_connector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698