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

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

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change setter to public and add license header Created 5 years, 6 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 | « remoting/webapp/base/js/client_session_factory.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * Mock implementation of ClientPlugin for testing. 7 * Mock implementation of ClientPlugin for testing.
8 */ 8 */
9 9
10 /** @suppress {duplicate} */ 10 /** @suppress {duplicate} */
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return false; 102 return false;
103 }; 103 };
104 104
105 remoting.MockClientPlugin.prototype.hasCapability = function(capability) { 105 remoting.MockClientPlugin.prototype.hasCapability = function(capability) {
106 return this.mock$capabilities.indexOf(capability) !== -1; 106 return this.mock$capabilities.indexOf(capability) !== -1;
107 }; 107 };
108 108
109 remoting.MockClientPlugin.prototype.sendClipboardItem = 109 remoting.MockClientPlugin.prototype.sendClipboardItem =
110 function(mimeType, item) {}; 110 function(mimeType, item) {};
111 111
112 remoting.MockClientPlugin.prototype.enableTouchEvents =
113 function(enable) {};
114
112 remoting.MockClientPlugin.prototype.requestPairing = 115 remoting.MockClientPlugin.prototype.requestPairing =
113 function(clientName, onDone) {}; 116 function(clientName, onDone) {};
114 117
115 remoting.MockClientPlugin.prototype.allowMouseLock = function() {}; 118 remoting.MockClientPlugin.prototype.allowMouseLock = function() {};
116 119
117 remoting.MockClientPlugin.prototype.pauseAudio = function(pause) {}; 120 remoting.MockClientPlugin.prototype.pauseAudio = function(pause) {};
118 121
119 remoting.MockClientPlugin.prototype.pauseVideo = function(pause) {}; 122 remoting.MockClientPlugin.prototype.pauseVideo = function(pause) {};
120 123
121 remoting.MockClientPlugin.prototype.getPerfStats = function() { 124 remoting.MockClientPlugin.prototype.getPerfStats = function() {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 }; 288 };
286 289
287 })(); 290 })();
288 291
289 /** @enum {string} */ 292 /** @enum {string} */
290 remoting.MockClientPlugin.AuthMethod = { 293 remoting.MockClientPlugin.AuthMethod = {
291 ACCESS_CODE: 'accessCode', 294 ACCESS_CODE: 'accessCode',
292 PIN: 'pin', 295 PIN: 'pin',
293 THIRD_PARTY: 'thirdParty', 296 THIRD_PARTY: 'thirdParty',
294 PAIRING: 'pairing' 297 PAIRING: 'pairing'
295 }; 298 };
OLDNEW
« no previous file with comments | « remoting/webapp/base/js/client_session_factory.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698