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

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

Issue 2369013008: Log host and client screen sizes. (Closed)
Patch Set: Add DPI. Created 4 years, 2 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
« no previous file with comments | « no previous file | remoting/webapp/base/js/session_logger.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // `7MM"""Mq. `7MM 5 // `7MM"""Mq. `7MM
6 // MM `MM. MM 6 // MM `MM. MM
7 // MM ,M9 .gP"Ya ,6"Yb. ,M""bMM `7MMpMMMb.pMMMb. .gP"Ya 7 // MM ,M9 .gP"Ya ,6"Yb. ,M""bMM `7MMpMMMb.pMMMb. .gP"Ya
8 // MMmmdM9 ,M' Yb 8) MM ,AP MM MM MM MM ,M' Yb 8 // MMmmdM9 ,M' Yb 8) MM ,AP MM MM MM MM ,M' Yb
9 // MM YM. 8M"""""" ,pm9MM 8MI MM MM MM MM 8M"""""" 9 // MM YM. 8M"""""" ,pm9MM 8MI MM MM MM MM 8M""""""
10 // MM `Mb.YM. , 8M MM `Mb MM MM MM MM YM. , 10 // MM `Mb.YM. , 8M MM `Mb MM MM MM MM YM. ,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 /** 113 /**
114 * Elapsed time since the last host heartbeat in milliseconds. 114 * Elapsed time since the last host heartbeat in milliseconds.
115 * @type {number} 115 * @type {number}
116 */ 116 */
117 this.host_last_heartbeat_elapsed_time; 117 this.host_last_heartbeat_elapsed_time;
118 /** 118 /**
119 * To track features like number of ESC key press in a session. 119 * To track features like number of ESC key press in a session.
120 * @type {remoting.ChromotingEvent.FeatureTracker} 120 * @type {remoting.ChromotingEvent.FeatureTracker}
121 */ 121 */
122 this.feature_tracker; 122 this.feature_tracker;
123 /** @type {remoting.ChromotingEvent.ScreenResolution} */
124 this.host_all_screens_size;
125 /** @type {remoting.ChromotingEvent.ScreenResolution} */
126 this.client_video_size;
127 /** @type {remoting.ChromotingEvent.ScreenResolution} */
128 this.client_window_size;
129 /** @type {boolean} */
130 this.client_fullscreen;
131
123 this.init_(); 132 this.init_();
124 }; 133 };
125 134
126 /** @private */ 135 /** @private */
127 remoting.ChromotingEvent.prototype.init_ = function() { 136 remoting.ChromotingEvent.prototype.init_ = function() {
128 // System Info. 137 // System Info.
129 var systemInfo = remoting.getSystemInfo(); 138 var systemInfo = remoting.getSystemInfo();
130 this.cpu = systemInfo.cpu; 139 this.cpu = systemInfo.cpu;
131 this.os_version = systemInfo.osVersion; 140 this.os_version = systemInfo.osVersion;
132 if (systemInfo.osName === remoting.Os.WINDOWS) { 141 if (systemInfo.osName === remoting.Os.WINDOWS) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 /** 232 /**
224 * For tracking features like keypress count. 233 * For tracking features like keypress count.
225 * All counting fields will be initialized to 0. 234 * All counting fields will be initialized to 0.
226 * @constructor 235 * @constructor
227 */ 236 */
228 remoting.ChromotingEvent.FeatureTracker = function() { 237 remoting.ChromotingEvent.FeatureTracker = function() {
229 /** @type {number} */ 238 /** @type {number} */
230 this.fullscreen_esc_count = 0; 239 this.fullscreen_esc_count = 0;
231 }; 240 };
232 241
242 /**
243 * Client or host screen resolution.
244 *
245 * @param {number} width
246 * @param {number} height
247 * @param {number} dpi
248 * @struct
249 * @constructor
250 */
251 remoting.ChromotingEvent.ScreenResolution = function(width, height, dpi) {
252 /** @type {number} */
253 this.width = width;
254 /** @type {number} */
255 this.height = height;
256 /** @type {number} */
257 this.dpi = dpi;
258 };
259
233 })(); 260 })();
234 261
235 /** 262 /**
236 * @enum {number} 263 * @enum {number}
237 */ 264 */
238 remoting.ChromotingEvent.Type = { 265 remoting.ChromotingEvent.Type = {
239 SESSION_STATE: 1, 266 SESSION_STATE: 1,
240 CONNECTION_STATISTICS: 2, 267 CONNECTION_STATISTICS: 2,
241 SESSION_ID_OLD: 3, 268 SESSION_ID_OLD: 3,
242 SESSION_ID_NEW: 4, 269 SESSION_ID_NEW: 4,
243 HEARTBEAT: 5, 270 HEARTBEAT: 5,
244 HEARTBEAT_REJECTED: 6, 271 HEARTBEAT_REJECTED: 6,
245 RESTART: 7, 272 RESTART: 7,
246 HOST_STATUS: 8, 273 HOST_STATUS: 8,
247 SIGNAL_STRATEGY_PROGRESS: 9, 274 SIGNAL_STRATEGY_PROGRESS: 9,
248 FEATURE_TRACKING: 10 275 FEATURE_TRACKING: 10,
276 SCREEN_RESOLUTIONS: 11,
249 }; 277 };
250 278
251 /** @enum {number} */ 279 /** @enum {number} */
252 remoting.ChromotingEvent.Role = { 280 remoting.ChromotingEvent.Role = {
253 CLIENT: 0, 281 CLIENT: 0,
254 HOST: 1 282 HOST: 1
255 }; 283 };
256 284
257 /** @enum {number} */ 285 /** @enum {number} */
258 remoting.ChromotingEvent.Os = { 286 remoting.ChromotingEvent.Os = {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 FAILED_LATE: 5 401 FAILED_LATE: 5
374 }; 402 };
375 403
376 /** @enum {number} */ 404 /** @enum {number} */
377 remoting.ChromotingEvent.AuthMethod = { 405 remoting.ChromotingEvent.AuthMethod = {
378 PIN: 1, 406 PIN: 1,
379 ACCESS_CODE: 2, 407 ACCESS_CODE: 2,
380 PINLESS: 3, 408 PINLESS: 3,
381 THIRD_PARTY: 4, 409 THIRD_PARTY: 4,
382 }; 410 };
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/base/js/session_logger.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698