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

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

Issue 803653004: Update Chromoting to use /third_party/closure_compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused types 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 * Functions related to the 'client screen' for Chromoting. 7 * Functions related to the 'client screen' for Chromoting.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 if (event.target == pinForm) { 120 if (event.target == pinForm) {
121 event.preventDefault(); 121 event.preventDefault();
122 122
123 // Set the focus away from the password field. This has to be done 123 // Set the focus away from the password field. This has to be done
124 // before the password field gets hidden, to work around a Blink 124 // before the password field gets hidden, to work around a Blink
125 // clipboard-handling bug - http://crbug.com/281523. 125 // clipboard-handling bug - http://crbug.com/281523.
126 document.getElementById('pin-connect-button').focus(); 126 document.getElementById('pin-connect-button').focus();
127 127
128 remoting.setMode(remoting.AppMode.CLIENT_CONNECTING); 128 remoting.setMode(remoting.AppMode.CLIENT_CONNECTING);
129 onPinFetched(pin); 129 onPinFetched(pin);
130 if (/** @type {boolean} */(rememberPinCheckbox.checked)) { 130 if (rememberPinCheckbox.checked) {
131 /** @type {boolean} */ 131 /** @type {boolean} */
132 remoting.pairingRequested = true; 132 remoting.pairingRequested = true;
133 } 133 }
134 } else { 134 } else {
135 remoting.setMode(remoting.AppMode.HOME); 135 remoting.setMode(remoting.AppMode.HOME);
136 } 136 }
137 }; 137 };
138 pinForm.addEventListener('submit', onSubmitOrCancel, false); 138 pinForm.addEventListener('submit', onSubmitOrCancel, false);
139 pinCancel.addEventListener('click', onSubmitOrCancel, false); 139 pinCancel.addEventListener('click', onSubmitOrCancel, false);
140 rememberPin.hidden = !supportsPairing; 140 rememberPin.hidden = !supportsPairing;
(...skipping 13 matching lines...) Expand all
154 if (pairingInfo) { 154 if (pairingInfo) {
155 clientId = /** @type {string} */ (pairingInfo['clientId']); 155 clientId = /** @type {string} */ (pairingInfo['clientId']);
156 sharedSecret = /** @type {string} */ (pairingInfo['sharedSecret']); 156 sharedSecret = /** @type {string} */ (pairingInfo['sharedSecret']);
157 } 157 }
158 connector.connectMe2Me(host, requestPin, fetchThirdPartyToken, 158 connector.connectMe2Me(host, requestPin, fetchThirdPartyToken,
159 clientId, sharedSecret); 159 clientId, sharedSecret);
160 } 160 }
161 161
162 remoting.HostSettings.load(host.hostId, connectMe2MeHostSettingsRetrieved); 162 remoting.HostSettings.load(host.hostId, connectMe2MeHostSettingsRetrieved);
163 }; 163 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698