Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11 y-keys.html"> | |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper -radio-group.html"> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper -radio-group.html"> |
| 9 <link rel="import" href="/people_page/sync_browser_proxy.html"> | 10 <link rel="import" href="/people_page/sync_browser_proxy.html"> |
| 10 <link rel="import" href="/route.html"> | 11 <link rel="import" href="/route.html"> |
| 11 <link rel="import" href="/settings_shared_css.html"> | 12 <link rel="import" href="/settings_shared_css.html"> |
| 12 | 13 |
| 13 <dom-module id="settings-sync-page"> | 14 <dom-module id="settings-sync-page"> |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 </paper-radio-button> | 218 </paper-radio-button> |
| 218 </paper-radio-group> | 219 </paper-radio-group> |
| 219 <div id="reset-sync-message-box" class="list-item" | 220 <div id="reset-sync-message-box" class="list-item" |
| 220 hidden="[[!syncPrefs.encryptAllData]]"> | 221 hidden="[[!syncPrefs.encryptAllData]]"> |
| 221 <span>$i18nRaw{passphraseResetHint}</span> | 222 <span>$i18nRaw{passphraseResetHint}</span> |
| 222 </div> | 223 </div> |
| 223 </div> | 224 </div> |
| 224 | 225 |
| 225 <template is="dom-if" if="[[creatingNewPassphrase_]]"> | 226 <template is="dom-if" if="[[creatingNewPassphrase_]]"> |
| 226 <div class="list-frame"> | 227 <div class="list-frame"> |
| 227 <div id="create-password-box"> | 228 <div id="create-password-box"> |
|
Dan Beam
2017/01/14 00:08:07
can we just use keyBindings and/or IronA11yKeysBeh
tommycli
2017/01/14 00:33:15
I gave this a try locally, and the main problem is
| |
| 228 <div class="list-item"> | 229 <div class="list-item"> |
| 229 <span>$i18nRaw{passphraseExplanationText}</span> | 230 <span>$i18nRaw{passphraseExplanationText}</span> |
| 230 </div> | 231 </div> |
| 232 <iron-a11y-keys id="keys" keys="enter" | |
| 233 on-keys-pressed="onSaveNewPassphraseTap_"> | |
| 234 </iron-a11y-keys> | |
| 231 <paper-input id="passphraseInput" type="password" | 235 <paper-input id="passphraseInput" type="password" |
| 232 value="{{passphrase_}}" | 236 value="{{passphrase_}}" |
| 233 placeholder="$i18n{passphrasePlaceholder}" | 237 placeholder="$i18n{passphrasePlaceholder}" |
| 234 error-message="$i18n{emptyPassphraseError}"> | 238 error-message="$i18n{emptyPassphraseError}"> |
| 235 </paper-input> | 239 </paper-input> |
| 236 <paper-input id="passphraseConfirmationInput" type="password" | 240 <paper-input id="passphraseConfirmationInput" type="password" |
| 237 value="{{confirmation_}}" | 241 value="{{confirmation_}}" |
| 238 placeholder="$i18n{passphraseConfirmationPlaceholder}" | 242 placeholder="$i18n{passphraseConfirmationPlaceholder}" |
| 239 error-message="$i18n{mismatchedPassphraseError}"> | 243 error-message="$i18n{mismatchedPassphraseError}"> |
| 240 </paper-input> | 244 </paper-input> |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 256 <a href="$i18nRaw{syncErrorHelpUrl}" target="_blank"> | 260 <a href="$i18nRaw{syncErrorHelpUrl}" target="_blank"> |
| 257 $i18n{learnMore} | 261 $i18n{learnMore} |
| 258 </a> | 262 </a> |
| 259 </span> | 263 </span> |
| 260 </div> | 264 </div> |
| 261 <div id="existingPassphraseContainer" class="list-item"> | 265 <div id="existingPassphraseContainer" class="list-item"> |
| 262 <paper-input id="existingPassphraseInput" type="password" | 266 <paper-input id="existingPassphraseInput" type="password" |
| 263 value="{{existingPassphrase_}}" | 267 value="{{existingPassphrase_}}" |
| 264 placeholder="$i18n{passphrasePlaceholder}" | 268 placeholder="$i18n{passphrasePlaceholder}" |
| 265 error-message="$i18n{incorrectPassphraseError}"> | 269 error-message="$i18n{incorrectPassphraseError}"> |
| 270 <iron-a11y-keys id="keys" keys="enter" | |
| 271 on-keys-pressed="onSubmitExistingPassphraseTap_"> | |
|
Dan Beam
2017/01/14 00:08:07
if we do end up going with the tag, you should clo
tommycli
2017/01/14 00:33:16
Done.
| |
| 266 </paper-input> | 272 </paper-input> |
| 267 <paper-button id="submitExistingPassphrase" | 273 <paper-button id="submitExistingPassphrase" |
| 268 on-tap="onSubmitExistingPassphraseTap_" class="action-button" | 274 on-tap="onSubmitExistingPassphraseTap_" class="action-button" |
| 269 disabled="[[!existingPassphrase_]]"> | 275 disabled="[[!existingPassphrase_]]"> |
| 270 $i18n{submitPassphraseButton} | 276 $i18n{submitPassphraseButton} |
| 271 </paper-button> | 277 </paper-button> |
| 272 </div> | 278 </div> |
| 273 <div id="passphraseRecoverHint" class="list-item"> | 279 <div id="passphraseRecoverHint" class="list-item"> |
| 274 <span>$i18nRaw{passphraseRecover}</span> | 280 <span>$i18nRaw{passphraseRecover}</span> |
| 275 </div> | 281 </div> |
| 276 </div> | 282 </div> |
| 277 </template> | 283 </template> |
| 278 </div> | 284 </div> |
| 279 </template> | 285 </template> |
| 280 <script src="sync_page.js"></script> | 286 <script src="sync_page.js"></script> |
| 281 </dom-module> | 287 </dom-module> |
| OLD | NEW |