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

Side by Side Diff: remoting/webapp/crd/js/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 'use strict'; 5 'use strict';
6 6
7 /** @suppress {duplicate} */ 7 /** @suppress {duplicate} */
8 var remoting = remoting || {}; 8 var remoting = remoting || {};
9 9
10 /** 10 /**
(...skipping 10 matching lines...) Expand all
21 if (base.isAppsV2()) { 21 if (base.isAppsV2()) {
22 var htmlNode = /** @type {HTMLElement} */ (document.body.parentNode); 22 var htmlNode = /** @type {HTMLElement} */ (document.body.parentNode);
23 htmlNode.classList.add('apps-v2'); 23 htmlNode.classList.add('apps-v2');
24 } else { 24 } else {
25 migrateLocalToChromeStorage_(); 25 migrateLocalToChromeStorage_();
26 } 26 }
27 27
28 console.log(remoting.getExtensionInfo()); 28 console.log(remoting.getExtensionInfo());
29 l10n.localize(); 29 l10n.localize();
30 30
31 if (base.isAppsV2()) {
32 remoting.fullscreen = new remoting.FullscreenAppsV2();
33 } else {
34 remoting.fullscreen = new remoting.FullscreenAppsV1();
35 }
36
37 remoting.stats = new remoting.ConnectionStats( 31 remoting.stats = new remoting.ConnectionStats(
38 document.getElementById('statistics')); 32 document.getElementById('statistics'));
39 remoting.formatIq = new remoting.FormatIq(); 33 remoting.formatIq = new remoting.FormatIq();
40 34
41 remoting.clipboard = new remoting.Clipboard(); 35 remoting.clipboard = new remoting.Clipboard();
42 var sandbox = 36 var sandbox =
43 /** @type {HTMLIFrameElement} */ (document.getElementById('wcs-sandbox')); 37 /** @type {HTMLIFrameElement} */ (document.getElementById('wcs-sandbox'));
44 remoting.wcsSandbox = new remoting.WcsSandboxContainer(sandbox.contentWindow); 38 remoting.wcsSandbox = new remoting.WcsSandboxContainer(sandbox.contentWindow);
45 39
46 // The plugin's onFocus handler sends a paste command to |window|, because 40 // The plugin's onFocus handler sends a paste command to |window|, because
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 ]; 241 ];
248 for (var setting in window.localStorage) { 242 for (var setting in window.localStorage) {
249 if (oauthSettings.indexOf(setting) == -1) { 243 if (oauthSettings.indexOf(setting) == -1) {
250 var copy = {} 244 var copy = {}
251 copy[setting] = window.localStorage.getItem(setting); 245 copy[setting] = window.localStorage.getItem(setting);
252 chrome.storage.local.set(copy); 246 chrome.storage.local.set(copy);
253 window.localStorage.removeItem(setting); 247 window.localStorage.removeItem(setting);
254 } 248 }
255 } 249 }
256 } 250 }
OLDNEW
« remoting/webapp/crd/js/event_handlers.js ('K') | « remoting/webapp/crd/js/fullscreen_v2.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698