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

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

Issue 12207099: Update web-app client to use plugin notifyDeviceResolution API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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 /** @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
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 remoting.ClientPlugin.prototype.isSupportedVersion = function() {}; 48 remoting.ClientPlugin.prototype.isSupportedVersion = function() {};
49 49
50 /** 50 /**
51 * Set of features for which hasFeature() can be used to test. 51 * Set of features for which hasFeature() can be used to test.
52 * 52 *
53 * @enum {string} 53 * @enum {string}
54 */ 54 */
55 remoting.ClientPlugin.Feature = { 55 remoting.ClientPlugin.Feature = {
56 INJECT_KEY_EVENT: 'injectKeyEvent', 56 INJECT_KEY_EVENT: 'injectKeyEvent',
57 NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions', 57 NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions',
58 NOTIFY_CLIENT_RESOLUTION: 'notifyClientResolution',
58 PAUSE_VIDEO: 'pauseVideo', 59 PAUSE_VIDEO: 'pauseVideo',
59 PAUSE_AUDIO: 'pauseAudio', 60 PAUSE_AUDIO: 'pauseAudio',
60 REMAP_KEY: 'remapKey', 61 REMAP_KEY: 'remapKey',
61 SEND_CLIPBOARD_ITEM: 'sendClipboardItem', 62 SEND_CLIPBOARD_ITEM: 'sendClipboardItem',
62 TRAP_KEY: 'trapKey' 63 TRAP_KEY: 'trapKey'
63 }; 64 };
64 65
65 /** 66 /**
66 * @param {remoting.ClientPlugin.Feature} feature The feature to test for. 67 * @param {remoting.ClientPlugin.Feature} feature The feature to test for.
67 * @return {boolean} True if the plugin supports the named feature. 68 * @return {boolean} True if the plugin supports the named feature.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 141
141 /** 142 /**
142 * Sends a clipboard item to the host. 143 * Sends a clipboard item to the host.
143 * 144 *
144 * @param {string} mimeType The MIME type of the clipboard item. 145 * @param {string} mimeType The MIME type of the clipboard item.
145 * @param {string} item The clipboard item. 146 * @param {string} item The clipboard item.
146 */ 147 */
147 remoting.ClientPlugin.prototype.sendClipboardItem = function(mimeType, item) {}; 148 remoting.ClientPlugin.prototype.sendClipboardItem = function(mimeType, item) {};
148 149
149 /** 150 /**
150 * Notifies the host that the client has the specified dimensions. 151 * Notifies the host that the client has the specified size and pixel density.
151 * 152 *
152 * @param {number} width The available client width. 153 * @param {number} width The available client width in DIPs.
153 * @param {number} height The available client height. 154 * @param {number} height The available client height in DIPs.
155 * @param {number} device_scale The number of device pixels per DIP.
154 */ 156 */
155 remoting.ClientPlugin.prototype.notifyClientDimensions = 157 remoting.ClientPlugin.prototype.notifyClientResolution =
156 function(width, height) {}; 158 function(width, height, device_scale) {};
157 159
158 /** 160 /**
159 * Requests that the host pause or resume sending video updates. 161 * Requests that the host pause or resume sending video updates.
160 * 162 *
161 * @param {boolean} pause True to suspend video updates, false otherwise. 163 * @param {boolean} pause True to suspend video updates, false otherwise.
162 */ 164 */
163 remoting.ClientPlugin.prototype.pauseVideo = 165 remoting.ClientPlugin.prototype.pauseVideo =
164 function(pause) {}; 166 function(pause) {};
165 167
166 /** 168 /**
167 * Requests that the host pause or resume sending audio updates. 169 * Requests that the host pause or resume sending audio updates.
168 * 170 *
169 * @param {boolean} pause True to suspend audio updates, false otherwise. 171 * @param {boolean} pause True to suspend audio updates, false otherwise.
170 */ 172 */
171 remoting.ClientPlugin.prototype.pauseAudio = 173 remoting.ClientPlugin.prototype.pauseAudio =
172 function(pause) {}; 174 function(pause) {};
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/client_plugin_async.js » ('j') | remoting/webapp/client_plugin_async.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698