| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 remoting.HostSetupFlow.State.UPDATING_PIN, | 253 remoting.HostSetupFlow.State.UPDATING_PIN, |
| 254 remoting.HostSetupFlow.State.UPDATED_PIN]); | 254 remoting.HostSetupFlow.State.UPDATED_PIN]); |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 /** | 257 /** |
| 258 * Show the dialog in order to stop the daemon. | 258 * Show the dialog in order to stop the daemon. |
| 259 * | 259 * |
| 260 * @return {void} Nothing. | 260 * @return {void} Nothing. |
| 261 */ | 261 */ |
| 262 remoting.HostSetupDialog.prototype.showForStop = function() { | 262 remoting.HostSetupDialog.prototype.showForStop = function() { |
| 263 // TODO(sergeyu): Add another step to unregister the host, crubg.com/121146 . | 263 // TODO(sergeyu): Add another step to unregister the host, crbug.com/121146 . |
| 264 this.startNewFlow_( | 264 this.startNewFlow_( |
| 265 [remoting.HostSetupFlow.State.STOPPING_HOST, | 265 [remoting.HostSetupFlow.State.STOPPING_HOST, |
| 266 remoting.HostSetupFlow.State.HOST_STOPPED]); | 266 remoting.HostSetupFlow.State.HOST_STOPPED]); |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 /** | 269 /** |
| 270 * @return {void} Nothing. | 270 * @return {void} Nothing. |
| 271 */ | 271 */ |
| 272 remoting.HostSetupDialog.prototype.hide = function() { | 272 remoting.HostSetupDialog.prototype.hide = function() { |
| 273 remoting.setMode(remoting.AppMode.HOME); | 273 remoting.setMode(remoting.AppMode.HOME); |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 var c = pin.charAt(i); | 567 var c = pin.charAt(i); |
| 568 if ((c < '0') || (c > '9')) { | 568 if ((c < '0') || (c > '9')) { |
| 569 return false; | 569 return false; |
| 570 } | 570 } |
| 571 } | 571 } |
| 572 return true; | 572 return true; |
| 573 }; | 573 }; |
| 574 | 574 |
| 575 /** @type {remoting.HostSetupDialog} */ | 575 /** @type {remoting.HostSetupDialog} */ |
| 576 remoting.hostSetupDialog = null; | 576 remoting.hostSetupDialog = null; |
| OLD | NEW |