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

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

Issue 789733010: [Chromoting] Remove initIdentityEmail. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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
« no previous file with comments | « remoting/webapp/crd/js/crd_main.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 desktop 7 * This class implements the functionality that is specific to desktop
8 * remoting ("Chromoting" or CRD). 8 * remoting ("Chromoting" or CRD).
9 */ 9 */
10 10
(...skipping 23 matching lines...) Expand all
34 * Whether to refresh the JID and retry the connection if the current JID 34 * Whether to refresh the JID and retry the connection if the current JID
35 * is offline. 35 * is offline.
36 * 36 *
37 * @type {boolean} 37 * @type {boolean}
38 * @private 38 * @private
39 */ 39 */
40 this.refreshHostJidIfOffline_ = true; 40 this.refreshHostJidIfOffline_ = true;
41 }; 41 };
42 42
43 /** 43 /**
44 * Display the user's email address and allow access to the rest of the app,
45 * including parsing URL parameters.
46 *
47 * @param {string} email The user's email address.
48 * @param {string} fullName The user's full name. This is always null since
49 * CRD doesn't request userinfo.profile permission.
50 * @return {void} Nothing.
51 */
52 remoting.onUserInfoAvailable = function(email, fullName) {
53 document.getElementById('current-email').innerText = email;
54 document.getElementById('get-started-it2me').disabled = false;
55 document.getElementById('get-started-me2me').disabled = false;
56 };
57
58 /**
44 * Initialize the application and register all event handlers. After this 59 * Initialize the application and register all event handlers. After this
45 * is called, the app is running and waiting for user events. 60 * is called, the app is running and waiting for user events.
46 * 61 *
47 * @return {void} Nothing. 62 * @return {void} Nothing.
48 */ 63 */
49 remoting.DesktopRemoting.prototype.init = function() { 64 remoting.DesktopRemoting.prototype.init = function() {
50 remoting.initGlobalObjects(); 65 remoting.initGlobalObjects();
51 remoting.initIdentity(); 66 remoting.initIdentity(remoting.onUserInfoAvailable);
52 remoting.initIdentityEmail(remoting.onEmailAvailable);
53 67
54 remoting.initElementEventHandlers(); 68 remoting.initElementEventHandlers();
55 remoting.initGlobalEventHandlers(); 69 remoting.initGlobalEventHandlers();
56 70
57 if (base.isAppsV2()) { 71 if (base.isAppsV2()) {
58 remoting.fullscreen = new remoting.FullscreenAppsV2(); 72 remoting.fullscreen = new remoting.FullscreenAppsV2();
59 remoting.windowFrame = new remoting.WindowFrame( 73 remoting.windowFrame = new remoting.WindowFrame(
60 document.getElementById('title-bar')); 74 document.getElementById('title-bar'));
61 remoting.optionsMenu = remoting.windowFrame.createOptionsMenu(); 75 remoting.optionsMenu = remoting.windowFrame.createOptionsMenu();
62 } else { 76 } else {
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 if (mode == remoting.ClientSession.Mode.IT2ME) { 290 if (mode == remoting.ClientSession.Mode.IT2ME) {
277 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); 291 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME);
278 remoting.hangoutSessionEvents.raiseEvent( 292 remoting.hangoutSessionEvents.raiseEvent(
279 remoting.hangoutSessionEvents.sessionStateChanged, 293 remoting.hangoutSessionEvents.sessionStateChanged,
280 remoting.ClientSession.State.FAILED 294 remoting.ClientSession.State.FAILED
281 ); 295 );
282 } else { 296 } else {
283 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); 297 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME);
284 } 298 }
285 }; 299 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/crd_main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698