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

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

Issue 1191883002: Revert of [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} */
116 remoting.Application.prototype.getApplicationName = function() { 111 remoting.Application.prototype.getApplicationName = function() {
117 base.debug.assert(false, 'Subclass must override'); 112 base.debug.assert(false, 'Subclass must override');
118 }; 113 };
119 114
120 /** 115 /**
121 * @return {remoting.Activity} The Current activity. 116 * @return {remoting.Activity} The Current activity.
122 */ 117 */
123 remoting.Application.prototype.getActivity = function() { 118 remoting.Application.prototype.getActivity = function() {
124 base.debug.assert(false, 'Subclass must override'); 119 base.debug.assert(false, 'Subclass must override');
125 }; 120 };
(...skipping 26 matching lines...) Expand all
152 147
153 /** 148 /**
154 * The interface specifies the methods that a subclass of remoting.Application 149 * The interface specifies the methods that a subclass of remoting.Application
155 * is required implement to override the default behavior. 150 * is required implement to override the default behavior.
156 * 151 *
157 * @interface 152 * @interface
158 */ 153 */
159 remoting.ApplicationInterface = function() {}; 154 remoting.ApplicationInterface = function() {};
160 155
161 /** 156 /**
162 * @return {string} Application Id.
163 */
164 remoting.ApplicationInterface.prototype.getApplicationId = function() {};
165
166 /**
167 * @return {string} Application product name to be used in UI. 157 * @return {string} Application product name to be used in UI.
168 */ 158 */
169 remoting.ApplicationInterface.prototype.getApplicationName = function() {}; 159 remoting.ApplicationInterface.prototype.getApplicationName = function() {};
170 160
171 /** 161 /**
172 * Report an authentication error to the user. This is called in lieu of 162 * Report an authentication error to the user. This is called in lieu of
173 * startApplication() if the user cannot be authenticated or if they decline 163 * startApplication() if the user cannot be authenticated or if they decline
174 * the app permissions. 164 * the app permissions.
175 * 165 *
176 * @param {!remoting.Error} error The failure reason. 166 * @param {!remoting.Error} error The failure reason.
(...skipping 18 matching lines...) Expand all
195 */ 185 */
196 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {}; 186 remoting.ApplicationInterface.prototype.startApplication_ = function(token) {};
197 187
198 /** 188 /**
199 * Close down the application before exiting. 189 * Close down the application before exiting.
200 */ 190 */
201 remoting.ApplicationInterface.prototype.exitApplication_ = function() {}; 191 remoting.ApplicationInterface.prototype.exitApplication_ = function() {};
202 192
203 /** @type {remoting.Application} */ 193 /** @type {remoting.Application} */
204 remoting.app = null; 194 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