| 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 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 6 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr
ogress.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr
ogress.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html
"> |
| 8 <link rel="import" href="chrome://oobe/custom_elements.html"> | 10 <link rel="import" href="chrome://oobe/custom_elements.html"> |
| 9 | 11 |
| 10 <dom-module id="encryption-migration"> | 12 <dom-module id="encryption-migration"> |
| 11 <template> | 13 <template> |
| 12 <link rel="stylesheet" href="encryption_migration.css"> | 14 <link rel="stylesheet" href="encryption_migration.css"> |
| 13 <link rel="stylesheet" href="oobe_dialog_parameters.css"> | 15 <link rel="stylesheet" href="oobe_dialog_parameters.css"> |
| 14 <template is="dom-if" if="[[isInitial_(uiState)]]"> | 16 <template is="dom-if" if="[[isInitial_(uiState)]]"> |
| 15 <oobe-dialog tabindex="0" has-buttons> | 17 <oobe-dialog tabindex="0" has-buttons></oobe-dialog> |
| 16 <p>Checking the system...</p> | |
| 17 </oobe-dialog> | |
| 18 </template> | 18 </template> |
| 19 <template is="dom-if" if="[[isReady_(uiState)]]"> | 19 <template is="dom-if" if="[[isReady_(uiState)]]"> |
| 20 <oobe-dialog tabindex="0" has-buttons> | 20 <oobe-dialog tabindex="0" has-buttons> |
| 21 <iron-icon class="oobe-icon chrome-logo"></iron-icon> |
| 21 <div class="header"> | 22 <div class="header"> |
| 22 <h1 class="title">Your file system needs upgrade</h1> | 23 <h1 class="title">$i18n{migrationReadyTitle}</h1> |
| 23 <div class="subtitle"> | 24 <div class="subtitle">$i18n{migrationReadyDescription}</div> |
| 24 Your file system needs to be upgraded to use Android applications. | |
| 25 String TBD. | |
| 26 </div> | |
| 27 </div> | 25 </div> |
| 28 <template is="dom-if" if="[[!isEnoughBattery]]"> | 26 <template is="dom-if" if="[[isEnoughBattery]]"> |
| 29 <div class="footer flex layout vertical"> | 27 <div class="footer layout vertical center"> |
| 30 <div>Battery too low for update. <span>[[batteryPercent]]</span>% | 28 <img srcset="images/security_update_1x.png 1x, |
| 31 </div> | 29 images/security_update_2x.png 2x"> |
| 32 <div>Please plug your Chromebook into a power source.</div> | |
| 33 </div> | 30 </div> |
| 34 </template> | 31 </template> |
| 32 <template is="dom-if" if="[[!isEnoughBattery]]"> |
| 33 <div class="footer layout vertical"> |
| 34 <div class="warning"> |
| 35 [[computeBatteryWarningLabel_(batteryPercent)]] |
| 36 </div> |
| 37 <template is="dom-if" if="[[isCharging]]"> |
| 38 <div>$i18n{migrationChargingLabel}</div> |
| 39 </template> |
| 40 <template is="dom-if" if="[[!isCharging]]"> |
| 41 <div>$i18n{migrationAskChargeMessage}</div> |
| 42 </template> |
| 43 <div>[[computeNecessaryBatteryLevelLabel_()]]</div> |
| 44 </div> |
| 45 </template> |
| 46 </div> |
| 35 <template is="dom-if" if="[[!isResuming]]"> | 47 <template is="dom-if" if="[[!isResuming]]"> |
| 36 <div class="bottom-buttons flex layout horizontal"> | 48 <div class="bottom-buttons flex layout horizontal"> |
| 37 <div class="flex"></div> | 49 <div class="flex"></div> |
| 38 <oobe-text-button on-tap="onSkip_">Skip</oobe-text-button> | 50 <oobe-text-button border on-tap="onSkip_"> |
| 51 <div>$i18n{migrationButtonSkip}</div> |
| 52 </oobe-text-button> |
| 39 <oobe-text-button inverse on-tap="onUpgrade_" | 53 <oobe-text-button inverse on-tap="onUpgrade_" |
| 40 disabled="[[isMigrationAccepted]]">Upgrade</oobe-text-button> | 54 disabled="[[isMigrationAccepted]]"> |
| 55 <div>$i18n{migrationButtonUpdate}</div> |
| 56 </oobe-text-button> |
| 41 </div> | 57 </div> |
| 42 </template> | 58 </template> |
| 43 </oobe-dialog> | 59 </oobe-dialog> |
| 44 </template> | 60 </template> |
| 45 <template is="dom-if" if="[[isMigrating_(uiState)]]"> | 61 <template is="dom-if" if="[[isMigrating_(uiState)]]"> |
| 46 <oobe-dialog tabindex="0"> | 62 <oobe-dialog tabindex="0"> |
| 63 <iron-icon class="oobe-icon chrome-logo"></iron-icon> |
| 47 <div class="header"> | 64 <div class="header"> |
| 48 <h1 class="title">Upgrading...</h1> | 65 <h1 class="title">$i18n{migrationMigratingTitle}</h1> |
| 49 <div class="subtitle">Please do not shutdown. String TBD.</div> | 66 <div class="subtitle">$i18n{migrationMigratingDescription}</div> |
| 50 </div> | 67 </div> |
| 51 <div class="footer flex layout vertical"> | 68 <div class="footer flex layout vertical"> |
| 52 <paper-progress value="[[progress]]" max="1" step="0.001" | 69 <paper-progress value="[[progress]]" max="1" step="0.001" |
| 53 indeterminate="[[isProgressIndeterminate_(progress)]]"> | 70 indeterminate="[[isProgressIndeterminate_(progress)]]"> |
| 54 </paper-progress> | 71 </paper-progress> |
| 55 </div> | 72 <template is="dom-if" if="[[!isProgressIndeterminate_(progress)]]"> |
| 56 </oobe-dialog> | 73 <div>[[computeProgressLabel_(progress)]]</div> |
| 57 </template> | 74 </template> |
| 58 <template is="dom-if" if="[[isMigrationSucceeded_(uiState)]]"> | |
| 59 <oobe-dialog tabindex="0" has-buttons> | |
| 60 <div class="header"> | |
| 61 <h1 class="title">Upgrade successfully finished</h1> | |
| 62 <div class="subtitle"> | |
| 63 The system will restart automatically. String TBD. | |
| 64 </div> | |
| 65 </div> | |
| 66 <div class="bottom-buttons flex layout horizontal"> | |
| 67 <div class="flex"></div> | |
| 68 <oobe-text-button inverse on-tap="onRestart_">Restart Now | |
| 69 </oobe-text-button> | |
| 70 </div> | 75 </div> |
| 71 </oobe-dialog> | 76 </oobe-dialog> |
| 72 </template> | 77 </template> |
| 73 <template is="dom-if" if="[[isMigrationFailed_(uiState)]]"> | 78 <template is="dom-if" if="[[isMigrationFailed_(uiState)]]"> |
| 74 <oobe-dialog tabindex="0" has-buttons> | 79 <oobe-dialog tabindex="0" has-buttons> |
| 80 <iron-icon icon="cr:warning" class="oobe-icon warning"></iron-icon> |
| 75 <div class="header"> | 81 <div class="header"> |
| 76 <h1 class="title">Upgrade failed</h1> | 82 <h1 class="title">$i18n{migrationFailedTitle}</h1> |
| 77 <div class="subtitle"> | 83 <div class="subtitle">$i18n{migrationFailedSubtitle}</div> |
| 78 The system encountered a problem during migration. String TBD. | |
| 79 </div> | |
| 80 </div> | 84 </div> |
| 85 <div class="footer"><div>$i18n{migrationFailedMessage}</div></div> |
| 81 <div class="bottom-buttons flex layout horizontal"> | 86 <div class="bottom-buttons flex layout horizontal"> |
| 82 <div class="flex"></div> | 87 <div class="flex"></div> |
| 83 <oobe-text-button inverse on-tap="onRestart_">Restart | 88 <oobe-text-button inverse on-tap="onRestart_"> |
| 89 <div>$i18n{migrationButtonRestart}</div> |
| 84 </oobe-text-button> | 90 </oobe-text-button> |
| 85 </div> | 91 </div> |
| 86 </oobe-dialog> | 92 </oobe-dialog> |
| 87 </template> | 93 </template> |
| 88 <template is="dom-if" if="[[isNotEnoughSpace_(uiState)]]"> | 94 <template is="dom-if" if="[[isNotEnoughSpace_(uiState)]]"> |
| 89 <oobe-dialog tabindex="0" has-buttons> | 95 <oobe-dialog tabindex="0" has-buttons> |
| 96 <iron-icon class="oobe-icon chrome-logo"></iron-icon> |
| 90 <div class="header"> | 97 <div class="header"> |
| 91 <h1 class="title">Not enough storage for update</h1> | 98 <h1 class="title">$i18n{migrationReadyTitle}</h1> |
| 92 <div class="subtitle"> | 99 <div class="subtitle">$i18n{migrationReadyDescription}</div> |
| 93 Please free up some space on your device and sign in again. | 100 </div> |
| 94 </div> | 101 <div class="footer layout vertical"> |
| 102 <div class="warning">$i18n{migrationNospaceWarningLabel}</div> |
| 103 <div>$i18n{migrationAskFreeSpaceMessage}</div> |
| 104 <div>[[computeAvailableSpaceLabel_(availableSpaceInString)]]</div> |
| 105 <div>[[computeNecessarySpaceLabel_(necessarySpaceInString)]]</div> |
| 95 </div> | 106 </div> |
| 96 <div class="bottom-buttons flex layout horizontal"> | 107 <div class="bottom-buttons flex layout horizontal"> |
| 97 <div class="flex"></div> | 108 <div class="flex"></div> |
| 98 <template is="dom-if" if="[[!isResuming]]"> | 109 <template is="dom-if" if="[[!isResuming]]"> |
| 99 <oobe-text-button inverse on-tap="onSkip_">Continue | 110 <oobe-text-button inverse on-tap="onSkip_"> |
| 111 <div>$i18n{migrationButtonContinue}</div> |
| 100 </oobe-text-button> | 112 </oobe-text-button> |
| 101 </template> | 113 </template> |
| 102 <template is="dom-if" if="[[isResuming]]"> | 114 <template is="dom-if" if="[[isResuming]]"> |
| 103 <oobe-text-button inverse on-tap="onRestart_">Restart | 115 <oobe-text-button inverse on-tap="onRestart_"> |
| 116 <div>$i18n{migrationButtonRestart}</div> |
| 104 </oobe-text-button> | 117 </oobe-text-button> |
| 105 </template> | 118 </template> |
| 106 </div> | 119 </div> |
| 107 </oobe-dialog> | 120 </oobe-dialog> |
| 108 </template> | 121 </template> |
| 109 </template> | 122 </template> |
| 110 </dom-module> | 123 </dom-module> |
| OLD | NEW |