Home | History | Annotate | Download | only in webapp

Lines Matching full:clientsession

9  * The ClientSession class controls lifetime of the client plugin
41 * @param {remoting.ClientSession.Mode} mode The mode of this connection.
48 remoting.ClientSession = function(accessCode, fetchPin, fetchThirdPartyToken,
53 this.state_ = remoting.ClientSession.State.CREATED;
92 /** @type {?function(remoting.ClientSession.State,
93 remoting.ClientSession.State):void} */
135 if (this.mode_ == remoting.ClientSession.Mode.IT2ME) {
151 * @param {?function(remoting.ClientSession.State,
152 remoting.ClientSession.State):void} onStateChange
155 remoting.ClientSession.prototype.setOnStateChange = function(onStateChange) {
166 remoting.ClientSession.prototype.updateScrollbarVisibility = function() {
202 remoting.ClientSession.State = {
215 remoting.ClientSession.ConnectionError = {
227 remoting.ClientSession.Mode = {
236 remoting.ClientSession.PerfStats = function() {};
238 remoting.ClientSession.PerfStats.prototype.videoBandwidth;
240 remoting.ClientSession.PerfStats.prototype.videoFrameRate;
242 remoting.ClientSession.PerfStats.prototype.captureLatency;
244 remoting.ClientSession.PerfStats.prototype.encodeLatency;
246 remoting.ClientSession.PerfStats.prototype.decodeLatency;
248 remoting.ClientSession.PerfStats.prototype.renderLatency;
250 remoting.ClientSession.PerfStats.prototype.roundtripLatency;
253 remoting.ClientSession.STATS_KEY_VIDEO_BANDWIDTH = 'videoBandwidth';
254 remoting.ClientSession.STATS_KEY_VIDEO_FRAME_RATE = 'videoFrameRate';
255 remoting.ClientSession.STATS_KEY_CAPTURE_LATENCY = 'captureLatency';
256 remoting.ClientSession.STATS_KEY_ENCODE_LATENCY = 'encodeLatency';
257 remoting.ClientSession.STATS_KEY_DECODE_LATENCY = 'decodeLatency';
258 remoting.ClientSession.STATS_KEY_RENDER_LATENCY = 'renderLatency';
259 remoting.ClientSession.STATS_KEY_ROUNDTRIP_LATENCY = 'roundtripLatency';
262 remoting.ClientSession.KEY_REMAP_KEYS = 'remapKeys';
263 remoting.ClientSession.KEY_RESIZE_TO_CLIENT = 'resizeToClient';
264 remoting.ClientSession.KEY_SHRINK_TO_FIT = 'shrinkToFit';
271 remoting.ClientSession.prototype.PLUGIN_ID = 'session-client-plugin';
278 remoting.ClientSession.Capability = {
291 remoting.ClientSession.prototype.capabilities_ = null;
294 * @param {remoting.ClientSession.Capability} capability The capability to test
300 remoting.ClientSession.prototype.hasCapability_ = function(capability) {
313 remoting.ClientSession.prototype.createClientPlugin_ = function(container, id) {
331 remoting.ClientSession.prototype.pluginGotFocus_ = function() {
338 remoting.ClientSession.prototype.pluginLostFocus_ = function() {
354 remoting.ClientSession.prototype.createPluginAndConnect =
366 remoting.ClientSession.prototype.onHostSettingsLoaded_ = function(options) {
367 if (remoting.ClientSession.KEY_REMAP_KEYS in options &&
368 typeof(options[remoting.ClientSession.KEY_REMAP_KEYS]) ==
371 options[remoting.ClientSession.KEY_REMAP_KEYS];
373 if (remoting.ClientSession.KEY_RESIZE_TO_CLIENT in options &&
374 typeof(options[remoting.ClientSession.KEY_RESIZE_TO_CLIENT]) ==
377 options[remoting.ClientSession.KEY_RESIZE_TO_CLIENT];
379 if (remoting.ClientSession.KEY_SHRINK_TO_FIT in options &&
380 typeof(options[remoting.ClientSession.KEY_SHRINK_TO_FIT]) ==
383 options[remoting.ClientSession.KEY_SHRINK_TO_FIT];
394 remoting.ClientSession.prototype.setFocusHandlers_ = function() {
405 remoting.ClientSession.prototype.resetWithError_ = function(error) {
409 this.setState_(remoting.ClientSession.State.FAILED);
415 remoting.ClientSession.prototype.onPluginInitialized_ = function(initialized) {
433 } else if (this.mode_ != remoting.ClientSession.Mode.ME2ME) {
468 remoting.ClientSession.prototype.removePlugin = function() {
497 remoting.ClientSession.prototype.disconnect = function(isUserInitiated) {
502 remoting.ClientSession.State.CLOSED, remoting.Error.NONE, this.mode_);
522 * @return {remoting.ClientSession.Mode} The current state.
524 remoting.ClientSession.prototype.getMode = function() {
529 * @return {remoting.ClientSession.State} The current state.
531 remoting.ClientSession.prototype.getState = function() {
538 remoting.ClientSession.prototype.getError = function() {
550 remoting.ClientSession.prototype.sendKeyCombination_ = function(keys) {
564 remoting.ClientSession.prototype.sendCtrlAltDel = function() {
573 remoting.ClientSession.prototype.sendPrintScreen = function() {
582 remoting.ClientSession.prototype.setRemapKeys = function(remappings) {
590 options[remoting.ClientSession.KEY_REMAP_KEYS] = this.remapKeys_;
599 remoting.ClientSession.prototype.applyRemapKeys_ = function(apply) {
639 remoting.ClientSession.prototype.onSetScreenMode_ = function(event) {
665 remoting.ClientSession.prototype.setScreenMode_ =
682 options[remoting.ClientSession.KEY_SHRINK_TO_FIT] = this.shrinkToFit_;
683 options[remoting.ClientSession.KEY_RESIZE_TO_CLIENT] = this.resizeToClient_;
699 remoting.ClientSession.prototype.onFirstFrameReceived = function() {
706 remoting.ClientSession.prototype.hasReceivedFrame = function() {
717 remoting.ClientSession.prototype.sendIq_ = function(msg) {
746 remoting.ClientSession.prototype.initiateConnection_ = function() {
747 /** @type {remoting.ClientSession} */
775 remoting.ClientSession.prototype.connectPluginToWcs_ = function(localJid) {
808 remoting.ClientSession.prototype.getSharedSecret_ = function(callback) {
809 /** @type remoting.ClientSession */
849 remoting.ClientSession.prototype.onConnectionStatusUpdate_ =
851 if (status == remoting.ClientSession.State.CONNECTED) {
859 } else if (status == remoting.ClientSession.State.FAILED) {
861 case remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE:
864 case remoting.ClientSession.ConnectionError.SESSION_REJECTED:
867 case remoting.ClientSession.ConnectionError.INCOMPATIBLE_PROTOCOL:
870 case remoting.ClientSession.ConnectionError.NETWORK_FAILURE:
873 case remoting.ClientSession.ConnectionError.HOST_OVERLOAD:
880 this.setState_(/** @type {remoting.ClientSession.State} */ (status));
890 remoting.ClientSession.prototype.onConnectionReady_ = function(ready) {
906 remoting.ClientSession.prototype.onSetCapabilities_ = function(capabilities) {
914 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION)) {
923 * @param {remoting.ClientSession.State} newState The new state for the session.
926 remoting.ClientSession.prototype.setState_ = function(newState) {
930 if (oldState == remoting.ClientSession.State.CONNECTING) {
931 if (this.state_ == remoting.ClientSession.State.CLOSED) {
932 state = remoting.ClientSession.State.CONNECTION_CANCELED;
933 } else if (this.state_ == remoting.ClientSession.State.FAILED &&
939 state = remoting.ClientSession.State.CONNECTION_CANCELED;
941 } else if (oldState == remoting.ClientSession.State.CONNECTED &&
942 this.state_ == remoting.ClientSession.State.FAILED) {
943 state = remoting.ClientSession.State.CONNECTION_DROPPED;
956 remoting.ClientSession.prototype.onResize = function() {
969 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS)) {
993 remoting.ClientSession.prototype.pauseVideo = function(pause) {
1005 remoting.ClientSession.prototype.pauseAudio = function(pause) {
1018 remoting.ClientSession.prototype.onDesktopSizeChanged_ = function() {
1034 remoting.ClientSession.prototype.updateDimensions = function() {
1125 * @return {remoting.ClientSession.PerfStats} The connection statistics.
1127 remoting.ClientSession.prototype.getPerfStats = function() {
1134 * @param {remoting.ClientSession.PerfStats} stats
1136 remoting.ClientSession.prototype.logStatistics = function(stats) {
1148 remoting.ClientSession.prototype.logHostOfflineErrors = function(enable) {
1159 remoting.ClientSession.prototype.requestPairing = function(clientName, onDone) {
1170 remoting.ClientSession.prototype.toggleFullScreen_ = function() {
1189 remoting.ClientSession.prototype.onShowOptionsMenu_ = function() {
1209 remoting.ClientSession.prototype.scroll_ = function(dx, dy) {
1247 remoting.ClientSession.prototype.enableBumpScroll_ = function(enable) {
1266 remoting.ClientSession.prototype.onMouseMove_ = function(event) {
1297 /** @type {remoting.ClientSession} */
1326 remoting.ClientSession.prototype.sendClipboardItem = function(mimeType, item) {