| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |