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

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

Issue 1179873005: [AppRemoting] Break out AppRemoting shared module (re-land). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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';
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } else { 101 } else {
102 return 'Failed to get product version. Corrupt manifest?'; 102 return 'Failed to get product version. Corrupt manifest?';
103 } 103 }
104 }; 104 };
105 105
106 /** 106 /**
107 * These functions must be overridden in the subclass. 107 * These functions must be overridden in the subclass.
108 */ 108 */
109 109
110 /** @return {string} */ 110 /** @return {string} */
111 remoting.Application.prototype.getApplicationId = function() {
112 base.debug.assert(false, 'Subclass must override');
113 };
114
115 /** @return {string} */
111 remoting.Application.prototype.getApplicationName = function() { 116 remoting.Application.prototype.getApplicationName = function() {
112 base.debug.assert(false, 'Subclass must override'); 117 base.debug.assert(false, 'Subclass must override');
113 }; 118 };
114 119
115 /** 120 /**
116 * @return {remoting.Activity} The Current activity. 121 * @return {remoting.Activity} The Current activity.
117 */ 122 */
118 remoting.Application.prototype.getActivity = function() { 123 remoting.Application.prototype.getActivity = function() {
119 base.debug.assert(false, 'Subclass must override'); 124 base.debug.assert(false, 'Subclass must override');
120 }; 125 };
(...skipping 26 matching lines...) Expand all
147 152
148 /** 153 /**
149 * The interface specifies the methods that a subclass of remoting.Application 154 * The interface specifies the methods that a subclass of remoting.Application
150 * is required implement to override the default behavior. 155 * is required implement to override the default behavior.
151 * 156 *
152 * @interface 157 * @interface
153 */ 158 */
154 remoting.ApplicationInterface = function() {}; 159 remoting.ApplicationInterface = function() {};
155 160
156 /** 161 /**
162 * @return {string} Application Id.
163 */
164 remoting.ApplicationInterface.prototype.getApplicationId = function() {};
165
166 /**
157 * @return {string} Application product name to be used in UI. 167 * @return {string} Application product name to be used in UI.
158 */ 168 */
159 remoting.ApplicationInterface.prototype.getApplicationName = function() {}; 169 remoting.ApplicationInterface.prototype.getApplicationName = function() {};
160 170
161 /** 171 /**
162 * Report an authentication error to the user. This is called in lieu of 172 * Report an authentication error to the user. This is called in lieu of
163 * startApplication() if the user cannot be authenticated or if they decline 173 * startApplication() if the user cannot be authenticated or if they decline
164 * the app permissions. 174 * the app permissions.
165 * 175 *
166 * @param {!remoting.Error} error The failure reason. 176 * @param {!remoting.Error} error The failure reason.
(...skipping 18 matching lines...) Expand all
185 */ 195 */
186 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {}; 196 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {};
187 197
188 /** 198 /**
189 * Close down the application before exiting. 199 * Close down the application before exiting.
190 */ 200 */
191 remoting.ApplicationInterface.prototype.exitApplication_ = function() {}; 201 remoting.ApplicationInterface.prototype.exitApplication_ = function() {};
192 202
193 /** @type {remoting.Application} */ 203 /** @type {remoting.Application} */
194 remoting.app = null; 204 remoting.app = null;
OLDNEW
« no previous file with comments | « remoting/webapp/base/js/app_capabilities.js ('k') | remoting/webapp/base/js/message_window_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698