| OLD | NEW |
| 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 Legacy supervised user creation flow screen. | 6 * @fileoverview Legacy supervised user creation flow screen. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 login.createScreen('SupervisedUserCreationScreen', | 9 login.createScreen('SupervisedUserCreationScreen', |
| 10 'supervised-user-creation', function() { | 10 'supervised-user-creation', function() { |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 | 602 |
| 603 this.getScreenElement('take-photo').addEventListener( | 603 this.getScreenElement('take-photo').addEventListener( |
| 604 'click', this.handleTakePhoto_.bind(this)); | 604 'click', this.handleTakePhoto_.bind(this)); |
| 605 this.getScreenElement('discard-photo').addEventListener( | 605 this.getScreenElement('discard-photo').addEventListener( |
| 606 'click', this.handleDiscardPhoto_.bind(this)); | 606 'click', this.handleDiscardPhoto_.bind(this)); |
| 607 | 607 |
| 608 // Toggle 'animation' class for the duration of WebKit transition. | 608 // Toggle 'animation' class for the duration of WebKit transition. |
| 609 this.getScreenElement('flip-photo').addEventListener( | 609 this.getScreenElement('flip-photo').addEventListener( |
| 610 'click', this.handleFlipPhoto_.bind(this)); | 610 'click', this.handleFlipPhoto_.bind(this)); |
| 611 this.getScreenElement('image-stream-crop').addEventListener( | 611 this.getScreenElement('image-stream-crop').addEventListener( |
| 612 'webkitTransitionEnd', function(e) { | 612 'transitionend', function(e) { |
| 613 previewElement.classList.remove('animation'); | 613 previewElement.classList.remove('animation'); |
| 614 }); | 614 }); |
| 615 this.getScreenElement('image-preview-img').addEventListener( | 615 this.getScreenElement('image-preview-img').addEventListener( |
| 616 'webkitTransitionEnd', function(e) { | 616 'transitionend', function(e) { |
| 617 previewElement.classList.remove('animation'); | 617 previewElement.classList.remove('animation'); |
| 618 }); | 618 }); |
| 619 | 619 |
| 620 $('supervised-user-creation-navigation').addEventListener('close', | 620 $('supervised-user-creation-navigation').addEventListener('close', |
| 621 this.cancel.bind(this)); | 621 this.cancel.bind(this)); |
| 622 }, | 622 }, |
| 623 | 623 |
| 624 buttonIds: [], | 624 buttonIds: [], |
| 625 | 625 |
| 626 /** | 626 /** |
| (...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 | 1582 |
| 1583 if (selectedIndex >= 0) | 1583 if (selectedIndex >= 0) |
| 1584 this.importList_.selectPod(this.importList_.pods[selectedIndex]); | 1584 this.importList_.selectPod(this.importList_.pods[selectedIndex]); |
| 1585 | 1585 |
| 1586 if (this.currentPage_ == 'username') | 1586 if (this.currentPage_ == 'username') |
| 1587 this.getScreenElement('import-link').hidden = (userList.length == 0); | 1587 this.getScreenElement('import-link').hidden = (userList.length == 0); |
| 1588 }, | 1588 }, |
| 1589 }; | 1589 }; |
| 1590 }); | 1590 }); |
| 1591 | 1591 |
| OLD | NEW |