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

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

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should fix mac build Created 5 years, 8 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
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 * Interface abstracting the Application functionality. 7 * Interface abstracting the Application functionality.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
11 11
12 /** @suppress {duplicate} */ 12 /** @suppress {duplicate} */
13 var remoting = remoting || {}; 13 var remoting = remoting || {};
14 14
15 /** 15 /**
16 * @param {Array<string>} appCapabilities Array of application capabilities. 16 * @param {Array<string>} appCapabilities Array of application capabilities.
17 * @constructor 17 * @constructor
18 */ 18 */
19 remoting.Application = function(appCapabilities) { 19 remoting.Application = function(appCapabilities) {
20 /** @private {remoting.Application.Delegate} */ 20 /** @private {remoting.Application.Delegate} */
21 this.delegate_ = null; 21 this.delegate_ = null;
22 22
23 /** @private {Array<string>} */ 23 /** @private {Array<string>} */
24 this.appCapabilities_ = [ 24 this.appCapabilities_ = [
25 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION, 25 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION,
26 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS, 26 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS,
27 remoting.ClientSession.Capability.VIDEO_RECORDER 27 remoting.ClientSession.Capability.VIDEO_RECORDER,
28 remoting.ClientSession.Capability.MULTI_TOUCH
28 ]; 29 ];
29 // Append the app-specific capabilities. 30 // Append the app-specific capabilities.
30 this.appCapabilities_.push.apply(this.appCapabilities_, appCapabilities); 31 this.appCapabilities_.push.apply(this.appCapabilities_, appCapabilities);
31 32
32 /** @private {remoting.SessionConnector} */ 33 /** @private {remoting.SessionConnector} */
33 this.sessionConnector_ = null; 34 this.sessionConnector_ = null;
34 35
35 /** @private {base.Disposable} */ 36 /** @private {base.Disposable} */
36 this.sessionConnectedHooks_ = null; 37 this.sessionConnectedHooks_ = null;
37 }; 38 };
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 * Perform any application-specific cleanup before exiting. This is called in 294 * Perform any application-specific cleanup before exiting. This is called in
294 * lieu of start() if the user declines the app permissions, and will usually 295 * lieu of start() if the user declines the app permissions, and will usually
295 * be called immediately prior to exiting, although delegates should not rely 296 * be called immediately prior to exiting, although delegates should not rely
296 * on this. 297 * on this.
297 */ 298 */
298 remoting.Application.Delegate.prototype.handleExit = function() {}; 299 remoting.Application.Delegate.prototype.handleExit = function() {};
299 300
300 301
301 /** @type {remoting.Application} */ 302 /** @type {remoting.Application} */
302 remoting.app = null; 303 remoting.app = null;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698