| 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 /** | 5 /** |
| 6 * @fileoverview Polymer element for displaying encryption migration screen. | 6 * @fileoverview Polymer element for displaying encryption migration screen. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Enum for the UI states corresponding to sub steps inside migration screen. | 10 * Enum for the UI states corresponding to sub steps inside migration screen. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 value: -1 | 43 value: -1 |
| 44 }, | 44 }, |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * Whether the current migration is resuming the previous one. | 47 * Whether the current migration is resuming the previous one. |
| 48 */ | 48 */ |
| 49 isResuming: { | 49 isResuming: { |
| 50 type: Boolean, | 50 type: Boolean, |
| 51 value: false | 51 value: false |
| 52 }, | 52 }, |
| 53 |
| 54 /** |
| 55 * Battery level. |
| 56 */ |
| 57 batteryPercent: { |
| 58 type: Number, |
| 59 value: 0 |
| 60 }, |
| 61 |
| 62 /** |
| 63 * True if the battery level is enough to start migration. |
| 64 */ |
| 65 isEnoughBattery: { |
| 66 type: Boolean, |
| 67 value: true |
| 68 }, |
| 69 |
| 70 /** |
| 71 * True if the user already accepted the migration. |
| 72 */ |
| 73 isMigrationAccepted: { |
| 74 type: Boolean, |
| 75 value: false |
| 76 }, |
| 53 }, | 77 }, |
| 54 | 78 |
| 55 /** | 79 /** |
| 56 * Returns true if the migration is in initial state. | 80 * Returns true if the migration is in initial state. |
| 57 * @param {EncryptionMigrationUIState} state Current UI state | 81 * @param {EncryptionMigrationUIState} state Current UI state |
| 58 * @private | 82 * @private |
| 59 */ | 83 */ |
| 60 isInitial_: function(state) { | 84 isInitial_: function(state) { |
| 61 return state == EncryptionMigrationUIState.INITIAL; | 85 return state == EncryptionMigrationUIState.INITIAL; |
| 62 }, | 86 }, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 }, | 156 }, |
| 133 | 157 |
| 134 /** | 158 /** |
| 135 * Handles tap on RESTART button. | 159 * Handles tap on RESTART button. |
| 136 * @private | 160 * @private |
| 137 */ | 161 */ |
| 138 onRestart_: function() { | 162 onRestart_: function() { |
| 139 this.fire('restart'); | 163 this.fire('restart'); |
| 140 }, | 164 }, |
| 141 }); | 165 }); |
| OLD | NEW |