Lines Matching refs:remoting

8 var remoting = remoting || {};
10 /** @type {remoting.HostSession} */ remoting.hostSession = null;
15 remoting.isAppsV2 = false;
41 remoting.init = function() {
47 remoting.isAppsV2 = true;
52 if (!remoting.isAppsV2) {
56 remoting.logExtensionInfo_();
60 remoting.settings = new remoting.Settings();
61 if (remoting.isAppsV2) {
62 remoting.identity = new remoting.Identity(consentRequired_);
64 remoting.oauth2 = new remoting.OAuth2();
65 if (!remoting.oauth2.isAuthenticated()) {
68 remoting.identity = remoting.oauth2;
70 remoting.stats = new remoting.ConnectionStats(
72 remoting.formatIq = new remoting.FormatIq();
73 remoting.hostList = new remoting.HostList(
79 remoting.toolbar = new remoting.Toolbar(
81 remoting.clipboard = new remoting.Clipboard();
84 remoting.wcsSandbox = new remoting.WcsSandboxContainer(sandbox.contentWindow);
86 /** @param {remoting.Error} error */
90 if (error != remoting.Error.NOT_AUTHENTICATED) {
91 remoting.showErrorMessage(error);
94 remoting.identity.getEmail(remoting.onEmail, onGetEmailError);
96 remoting.showOrHideIT2MeUi();
97 remoting.showOrHideMe2MeUi();
104 remoting.initModalDialogs();
120 remoting.connectMe2Me(hostId);
125 remoting.initHomeScreenUi();
127 remoting.hostList.load(onLoad);
131 if (!remoting.isAppsV2 && navigator.platform.indexOf('Mac') == -1) {
150 remoting.onEmail = function(email) {
163 /** @type {remoting.HostPlugin} */
164 var plugin = remoting.HostSession.createPlugin();
175 remoting.initHomeScreenUi = function() {
176 remoting.hostController = new remoting.HostController();
178 remoting.setMode(remoting.AppMode.HOME);
179 remoting.hostSetupDialog =
180 new remoting.HostSetupDialog(remoting.hostController);
188 remoting.pairedClientManager =
189 new remoting.PairedClientManager(remoting.hostController, dialog, message,
193 remoting.updateLocalHostState();
194 remoting.hostList.refresh(remoting.updateLocalHostState);
195 remoting.butterBar = new remoting.ButterBar();
201 remoting.updateLocalHostState = function() {
206 remoting.hostController.getLocalHostState(onHostState.bind(null, hostId));
211 * @param {remoting.HostController.State} state Host state.
214 remoting.hostList.setLocalHostStateAndId(state, hostId);
215 remoting.hostList.display();
223 * @param {remoting.Error} error
227 remoting.pairedClientManager.setPairedClients([]);
231 remoting.hostController.getPairedClients(
232 remoting.pairedClientManager.setPairedClients.bind(
233 remoting.pairedClientManager),
237 remoting.pairedClientManager.setPairedClients([]);
241 remoting.hostController.hasFeature(
242 remoting.HostController.Feature.PAIRING_REGISTRY, onHasFeatureResponse);
243 remoting.hostController.getLocalHostId(onHostId);
250 remoting.logExtensionInfo_ = function() {
251 var v2OrLegacy = remoting.isAppsV2 ? " (v2)" : " (legacy)";
266 remoting.promptClose = function() {
267 if (!remoting.clientSession ||
268 remoting.clientSession.getMode() == remoting.ClientSession.Mode.ME2ME) {
271 switch (remoting.currentMode) {
272 case remoting.AppMode.CLIENT_CONNECTING:
273 case remoting.AppMode.HOST_WAITING_FOR_CODE:
274 case remoting.AppMode.HOST_WAITING_FOR_CONNECTION:
275 case remoting.AppMode.HOST_SHARED:
276 case remoting.AppMode.IN_SESSION:
289 remoting.signOut = function() {
290 remoting.oauth2.clear();
292 remoting.setMode(remoting.AppMode.HOME);
301 remoting.runningOnChromeOS = function() {
312 var event = /** @type {remoting.ClipboardEvent} */ eventUncast;
314 remoting.clipboard.toHost(event.clipboardData);
325 var event = /** @type {remoting.ClipboardEvent} */ eventUncast;
327 if (remoting.clipboard.toOs(event.clipboardData)) {
341 return !remoting.runningOnChromeOS();
374 remoting.timestamp = function() {
399 * @param {remoting.Error} error
402 remoting.showErrorMessage = function(error) {
406 var auth_failed = (error == remoting.Error.AUTHENTICATION_FAILED);
409 remoting.setMode(remoting.AppMode.TOKEN_REFRESH_FAILED);
449 'remoting-email'
465 remoting.generateXsrfToken = function() {