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

Side by Side Diff: remoting/webapp/app_remoting/js/app_remoting.js

Issue 875583002: Allow full-screen mode when not connected, and remember the previous setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 * This class implements the functionality that is specific to application 7 * This class implements the functionality that is specific to application
8 * remoting ("AppRemoting" or AR). 8 * remoting ("AppRemoting" or AR).
9 */ 9 */
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 * 87 *
88 * @param {remoting.SessionConnector} connector 88 * @param {remoting.SessionConnector} connector
89 * @return {void} Nothing. 89 * @return {void} Nothing.
90 */ 90 */
91 remoting.AppRemoting.prototype.init = function(connector) { 91 remoting.AppRemoting.prototype.init = function(connector) {
92 remoting.initGlobalObjects(); 92 remoting.initGlobalObjects();
93 remoting.initIdentity(remoting.onUserInfoAvailable); 93 remoting.initIdentity(remoting.onUserInfoAvailable);
94 94
95 remoting.initGlobalEventHandlers(); 95 remoting.initGlobalEventHandlers();
96 96
97 // TODO(jamiewalch): Remove ClientSession's dependency on remoting.fullscreen
98 // so that this is no longer required.
99 remoting.fullscreen = new remoting.FullscreenAppsV2();
100
97 var restoreHostWindows = function() { 101 var restoreHostWindows = function() {
98 if (remoting.clientSession) { 102 if (remoting.clientSession) {
99 remoting.clientSession.sendClientMessage('restoreAllWindows', ''); 103 remoting.clientSession.sendClientMessage('restoreAllWindows', '');
100 } 104 }
101 }; 105 };
102 chrome.app.window.current().onRestored.addListener(restoreHostWindows); 106 chrome.app.window.current().onRestored.addListener(restoreHostWindows);
103 107
104 remoting.windowShape.updateClientWindowShape(); 108 remoting.windowShape.updateClientWindowShape();
105 109
106 // Initialize the context menus. 110 // Initialize the context menus.
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 remoting.MessageWindow.showErrorMessage( 349 remoting.MessageWindow.showErrorMessage(
346 chrome.i18n.getMessage(/**i18n-content*/'CONNECTION_FAILED'), 350 chrome.i18n.getMessage(/**i18n-content*/'CONNECTION_FAILED'),
347 chrome.i18n.getMessage(/** @type {string} */ (errorTag))); 351 chrome.i18n.getMessage(/** @type {string} */ (errorTag)));
348 }; 352 };
349 353
350 /** @return {string} */ 354 /** @return {string} */
351 remoting.AppRemoting.prototype.runApplicationUrl = function() { 355 remoting.AppRemoting.prototype.runApplicationUrl = function() {
352 return remoting.settings.APP_REMOTING_API_BASE_URL + '/applications/' + 356 return remoting.settings.APP_REMOTING_API_BASE_URL + '/applications/' +
353 remoting.settings.getAppRemotingApplicationId() + '/run'; 357 remoting.settings.getAppRemotingApplicationId() + '/run';
354 }; 358 };
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/crd/html/window_frame.css » ('j') | remoting/webapp/crd/js/app_launcher.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698