| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 login.createScreen('EncryptionMigrationScreen', 'encryption-migration', | 5 login.createScreen('EncryptionMigrationScreen', 'encryption-migration', |
| 6 function() { | 6 function() { |
| 7 return { | 7 return { |
| 8 EXTERNAL_API: [ | 8 EXTERNAL_API: [ |
| 9 'setUIState', | 9 'setUIState', |
| 10 'setMigrationProgress', | 10 'setMigrationProgress', |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 var encryptionMigration = $('encryption-migration-element'); | 24 var encryptionMigration = $('encryption-migration-element'); |
| 25 encryptionMigration.addEventListener('upgrade', function() { | 25 encryptionMigration.addEventListener('upgrade', function() { |
| 26 chrome.send('startMigration'); | 26 chrome.send('startMigration'); |
| 27 }); | 27 }); |
| 28 encryptionMigration.addEventListener('skip', function() { | 28 encryptionMigration.addEventListener('skip', function() { |
| 29 chrome.send('skipMigration'); | 29 chrome.send('skipMigration'); |
| 30 }); | 30 }); |
| 31 encryptionMigration.addEventListener('restart', function() { | 31 encryptionMigration.addEventListener('restart', function() { |
| 32 chrome.send('requestRestart'); | 32 chrome.send('requestRestart'); |
| 33 }); | 33 }); |
| 34 encryptionMigration.addEventListener('restart-on-failure', function() { |
| 35 chrome.send('requestRestartOnFailure'); |
| 36 }); |
| 34 encryptionMigration.addEventListener('openFeedbackDialog', function() { | 37 encryptionMigration.addEventListener('openFeedbackDialog', function() { |
| 35 chrome.send('openFeedbackDialog'); | 38 chrome.send('openFeedbackDialog'); |
| 36 }); | 39 }); |
| 37 }, | 40 }, |
| 38 | 41 |
| 39 /** | 42 /** |
| 40 * Event handler that is invoked just before the screen in shown. | 43 * Event handler that is invoked just before the screen in shown. |
| 41 */ | 44 */ |
| 42 onBeforeShow: function() { | 45 onBeforeShow: function() { |
| 43 $('progress-dots').hidden = true; | 46 $('progress-dots').hidden = true; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 105 |
| 103 /** | 106 /** |
| 104 * Updates the string representation of necessary space size. | 107 * Updates the string representation of necessary space size. |
| 105 * @param {string} space | 108 * @param {string} space |
| 106 */ | 109 */ |
| 107 setNecessarySpaceInString: function(space) { | 110 setNecessarySpaceInString: function(space) { |
| 108 $('encryption-migration-element').necessarySpaceInString = space; | 111 $('encryption-migration-element').necessarySpaceInString = space; |
| 109 }, | 112 }, |
| 110 }; | 113 }; |
| 111 }); | 114 }); |
| OLD | NEW |