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

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

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 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
« no previous file with comments | « remoting/webapp/base/js/app_capabilities.js ('k') | remoting/webapp/base/js/auth_dialog.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 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>} app_capabilities Array of application capabilities. 16 * @param {Array<string>} app_capabilities Array of application capabilities.
17 * @constructor 17 * @constructor
18 */ 18 */
19 remoting.Application = function(app_capabilities) { 19 remoting.Application = function(app_capabilities) {
20 /** 20 /**
21 * @type {remoting.Application.Delegate} 21 * @type {remoting.Application.Delegate}
22 * @private 22 * @private
23 */ 23 */
24 this.delegate_ = null; 24 this.delegate_ = null;
25 25
26 /** 26 /**
27 * @type {Array.<string>} 27 * @type {Array<string>}
28 * @private 28 * @private
29 */ 29 */
30 this.app_capabilities_ = [ 30 this.app_capabilities_ = [
31 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION, 31 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION,
32 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS, 32 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS,
33 remoting.ClientSession.Capability.VIDEO_RECORDER 33 remoting.ClientSession.Capability.VIDEO_RECORDER
34 ]; 34 ];
35 // Append the app-specific capabilities. 35 // Append the app-specific capabilities.
36 this.app_capabilities_.push.apply(this.app_capabilities_, app_capabilities); 36 this.app_capabilities_.push.apply(this.app_capabilities_, app_capabilities);
37 37
(...skipping 13 matching lines...) Expand all
51 }; 51 };
52 52
53 /** 53 /**
54 * @return {string} Application product name to be used in UI. 54 * @return {string} Application product name to be used in UI.
55 */ 55 */
56 remoting.Application.prototype.getApplicationName = function() { 56 remoting.Application.prototype.getApplicationName = function() {
57 return this.delegate_.getApplicationName(); 57 return this.delegate_.getApplicationName();
58 }; 58 };
59 59
60 /** 60 /**
61 * @return {Array.<string>} A list of |ClientSession.Capability|s required 61 * @return {Array<string>} A list of |ClientSession.Capability|s required
62 * by this application. 62 * by this application.
63 */ 63 */
64 remoting.Application.prototype.getRequiredCapabilities_ = function() { 64 remoting.Application.prototype.getRequiredCapabilities_ = function() {
65 return this.app_capabilities_; 65 return this.app_capabilities_;
66 }; 66 };
67 67
68 /** 68 /**
69 * @param {remoting.ClientSession.Capability} capability 69 * @param {remoting.ClientSession.Capability} capability
70 * @return {boolean} 70 * @return {boolean}
71 */ 71 */
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 * Called when an error needs to be displayed to the user. 270 * Called when an error needs to be displayed to the user.
271 * 271 *
272 * @param {remoting.Error} errorTag The error to be localized and displayed. 272 * @param {remoting.Error} errorTag The error to be localized and displayed.
273 * @return {void} Nothing. 273 * @return {void} Nothing.
274 */ 274 */
275 remoting.Application.Delegate.prototype.handleError = function(errorTag) {}; 275 remoting.Application.Delegate.prototype.handleError = function(errorTag) {};
276 276
277 277
278 /** @type {remoting.Application} */ 278 /** @type {remoting.Application} */
279 remoting.app = null; 279 remoting.app = null;
OLDNEW
« no previous file with comments | « remoting/webapp/base/js/app_capabilities.js ('k') | remoting/webapp/base/js/auth_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698