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

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

Issue 10692179: Propagate connection state from networking layer to UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « remoting/protocol/transport.h ('k') | remoting/webapp/client_plugin_async.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 (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 /** @suppress {duplicate} */ 5 /** @suppress {duplicate} */
6 var remoting = remoting || {}; 6 var remoting = remoting || {};
7 7
8 /** 8 /**
9 * Interface used for ClientPlugin objects. 9 * Interface used for ClientPlugin objects.
10 * @interface 10 * @interface
11 */ 11 */
12 remoting.ClientPlugin = function() { 12 remoting.ClientPlugin = function() {
13 }; 13 };
14 14
15 /** @type {number} Desktop width */ 15 /** @type {number} Desktop width */
16 remoting.ClientPlugin.prototype.desktopWidth; 16 remoting.ClientPlugin.prototype.desktopWidth;
17 /** @type {number} Desktop height */ 17 /** @type {number} Desktop height */
18 remoting.ClientPlugin.prototype.desktopHeight; 18 remoting.ClientPlugin.prototype.desktopHeight;
19 /** @type {number} Desktop x DPI */ 19 /** @type {number} Desktop x DPI */
20 remoting.ClientPlugin.prototype.desktopXDpi; 20 remoting.ClientPlugin.prototype.desktopXDpi;
21 /** @type {number} Desktop y DPI */ 21 /** @type {number} Desktop y DPI */
22 remoting.ClientPlugin.prototype.desktopYDpi; 22 remoting.ClientPlugin.prototype.desktopYDpi;
23 23
24 /** @type {function(string): void} Outgoing signaling message callback. */ 24 /** @type {function(string): void} Outgoing signaling message callback. */
25 remoting.ClientPlugin.prototype.onOutgoingIqHandler; 25 remoting.ClientPlugin.prototype.onOutgoingIqHandler;
26 /** @type {function(string): void} Debug messages callback. */ 26 /** @type {function(string): void} Debug messages callback. */
27 remoting.ClientPlugin.prototype.onDebugMessageHandler; 27 remoting.ClientPlugin.prototype.onDebugMessageHandler;
28 /** @type {function(number, number): void} State change callback. */ 28 /** @type {function(number, number): void} State change callback. */
29 remoting.ClientPlugin.prototype.onConnectionStatusUpdateHandler; 29 remoting.ClientPlugin.prototype.onConnectionStatusUpdateHandler;
30 /** @type {function(boolean): void} Connection ready state callback. */
31 remoting.ClientPlugin.prototype.onConnectionReadyHandler;
30 /** @type {function(): void} Desktop size change callback. */ 32 /** @type {function(): void} Desktop size change callback. */
31 remoting.ClientPlugin.prototype.onDesktopSizeUpdateHandler; 33 remoting.ClientPlugin.prototype.onDesktopSizeUpdateHandler;
32 34
33 /** 35 /**
34 * Initializes the plugin asynchronously and calls specified function 36 * Initializes the plugin asynchronously and calls specified function
35 * when done. 37 * when done.
36 * 38 *
37 * @param {function(boolean): void} onDone Function to be called when 39 * @param {function(boolean): void} onDone Function to be called when
38 * the plugin is initialized. Parameter is set to true when the plugin 40 * the plugin is initialized. Parameter is set to true when the plugin
39 * is loaded successfully. 41 * is loaded successfully.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 remoting.ClientPlugin.prototype.notifyClientDimensions = 146 remoting.ClientPlugin.prototype.notifyClientDimensions =
145 function(width, height) {}; 147 function(width, height) {};
146 148
147 /** 149 /**
148 * Requests that the host pause or resume sending video updates. 150 * Requests that the host pause or resume sending video updates.
149 * 151 *
150 * @param {boolean} pause True to suspend video updates, false otherwise. 152 * @param {boolean} pause True to suspend video updates, false otherwise.
151 */ 153 */
152 remoting.ClientPlugin.prototype.pauseVideo = 154 remoting.ClientPlugin.prototype.pauseVideo =
153 function(pause) {}; 155 function(pause) {};
OLDNEW
« no previous file with comments | « remoting/protocol/transport.h ('k') | remoting/webapp/client_plugin_async.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698