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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 event.preventDefault(); | 137 event.preventDefault(); |
138 }; | 138 }; |
139 this.pinEntry_.addEventListener('keypress', onDaemonPinEntryKeyPress, false); | 139 this.pinEntry_.addEventListener('keypress', onDaemonPinEntryKeyPress, false); |
140 this.pinEntry_.addEventListener('keypress', noDigitsInPin, false); | 140 this.pinEntry_.addEventListener('keypress', noDigitsInPin, false); |
141 this.pinConfirm_.addEventListener('focus', onPinConfirmFocus, false); | 141 this.pinConfirm_.addEventListener('focus', onPinConfirmFocus, false); |
142 this.pinConfirm_.addEventListener('keypress', noDigitsInPin, false); | 142 this.pinConfirm_.addEventListener('keypress', noDigitsInPin, false); |
143 | 143 |
144 this.usageStats_ = document.getElementById('usagestats-consent'); | 144 this.usageStats_ = document.getElementById('usagestats-consent'); |
145 this.usageStatsCheckbox_ = /** @type {HTMLInputElement} */ | 145 this.usageStatsCheckbox_ = /** @type {HTMLInputElement} */ |
146 document.getElementById('usagestats-consent-checkbox'); | 146 (document.getElementById('usagestats-consent-checkbox')); |
147 }; | 147 }; |
148 | 148 |
149 /** | 149 /** |
150 * Show the dialog in order to get a PIN prior to starting the daemon. When the | 150 * Show the dialog in order to get a PIN prior to starting the daemon. When the |
151 * user clicks OK, the dialog shows a spinner until the daemon has started. | 151 * user clicks OK, the dialog shows a spinner until the daemon has started. |
152 * | 152 * |
153 * @return {void} Nothing. | 153 * @return {void} Nothing. |
154 */ | 154 */ |
155 remoting.HostSetupDialog.prototype.showForStart = function() { | 155 remoting.HostSetupDialog.prototype.showForStart = function() { |
156 /** @type {remoting.HostSetupDialog} */ | 156 /** @type {remoting.HostSetupDialog} */ |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 var c = pin.charAt(i); | 550 var c = pin.charAt(i); |
551 if ((c < '0') || (c > '9')) { | 551 if ((c < '0') || (c > '9')) { |
552 return false; | 552 return false; |
553 } | 553 } |
554 } | 554 } |
555 return true; | 555 return true; |
556 }; | 556 }; |
557 | 557 |
558 /** @type {remoting.HostSetupDialog} */ | 558 /** @type {remoting.HostSetupDialog} */ |
559 remoting.hostSetupDialog = null; | 559 remoting.hostSetupDialog = null; |
OLD | NEW |