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

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

Issue 9903008: Added first-run infographic screens for IT2Me and Me2Me. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/main.html ('k') | remoting/webapp/ui_mode.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** @type {remoting.HostSession} */ remoting.hostSession = null; 10 /** @type {remoting.HostSession} */ remoting.hostSession = null;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 remoting.toolbar = new remoting.Toolbar( 44 remoting.toolbar = new remoting.Toolbar(
45 document.getElementById('session-toolbar')); 45 document.getElementById('session-toolbar'));
46 remoting.clipboard = new remoting.Clipboard(); 46 remoting.clipboard = new remoting.Clipboard();
47 47
48 refreshEmail_(); 48 refreshEmail_();
49 var email = remoting.oauth2.getCachedEmail(); 49 var email = remoting.oauth2.getCachedEmail();
50 if (email) { 50 if (email) {
51 document.getElementById('current-email').innerText = email; 51 document.getElementById('current-email').innerText = email;
52 } 52 }
53 53
54 remoting.showOrHideIt2MeUi();
55 remoting.showOrHideMe2MeUi();
56
54 // The plugin's onFocus handler sends a paste command to |window|, because 57 // The plugin's onFocus handler sends a paste command to |window|, because
55 // it can't send one to the plugin element itself. 58 // it can't send one to the plugin element itself.
56 window.addEventListener('paste', pluginGotPaste_, false); 59 window.addEventListener('paste', pluginGotPaste_, false);
57 60
58 if (isHostModeSupported_()) { 61 if (isHostModeSupported_()) {
59 var noShare = document.getElementById('chrome-os-no-share'); 62 var noShare = document.getElementById('chrome-os-no-share');
60 noShare.parentNode.removeChild(noShare); 63 noShare.parentNode.removeChild(noShare);
61 } else { 64 } else {
62 var button = document.getElementById('share-button'); 65 var button = document.getElementById('share-button');
63 button.disabled = true; 66 button.disabled = true;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 */ 216 */
214 function getUrlParameters_() { 217 function getUrlParameters_() {
215 var result = {}; 218 var result = {};
216 var parts = window.location.search.substring(1).split('&'); 219 var parts = window.location.search.substring(1).split('&');
217 for (var i = 0; i < parts.length; i++) { 220 for (var i = 0; i < parts.length; i++) {
218 var pair = parts[i].split('='); 221 var pair = parts[i].split('=');
219 result[pair[0]] = decodeURIComponent(pair[1]); 222 result[pair[0]] = decodeURIComponent(pair[1]);
220 } 223 }
221 return result; 224 return result;
222 } 225 }
OLDNEW
« no previous file with comments | « remoting/webapp/main.html ('k') | remoting/webapp/ui_mode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698