Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <link rel="import" href="chrome://resources/html/assert.html"> | 1 <link rel="import" href="chrome://resources/html/assert.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/i18n_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 5 <link rel="import" href="../i18n_setup.html"> | 5 <link rel="import" href="../i18n_setup.html"> |
| 6 <link rel="import" href="../icons.html"> | 6 <link rel="import" href="../icons.html"> |
| 7 <link rel="import" href="lock_screen_constants.html"> | 7 <link rel="import" href="lock_screen_constants.html"> |
| 8 <link rel="import" href="pin_keyboard.html"> | 8 <link rel="import" href="pin_keyboard.html"> |
| 9 <link rel="import" href="../settings_shared_css.html"> | 9 <link rel="import" href="../settings_shared_css.html"> |
| 10 | 10 |
| 11 <dom-module id="settings-setup-pin-dialog"> | 11 <dom-module id="settings-setup-pin-dialog"> |
| 12 <template> | 12 <template> |
| 13 <style include="settings-shared"></style> | 13 <style include="settings-shared"> |
| 14 <style> | |
|
stevenjb
2017/03/31 01:53:34
heh, oops!
| |
| 15 .warning { | 14 .warning { |
| 16 color: var(--paper-grey-700); | 15 color: var(--paper-grey-700); |
| 17 } | 16 } |
| 18 | 17 |
| 19 .warning > iron-icon { | 18 .warning > iron-icon { |
| 20 --iron-icon-fill-color: var(--paper-grey-700); | 19 --iron-icon-fill-color: var(--paper-grey-700); |
| 21 } | 20 } |
| 22 | 21 |
| 23 .error { | 22 .error { |
| 24 color: var(--paper-red-500); | 23 color: var(--paper-red-500); |
| 25 } | 24 } |
| 26 | 25 |
| 27 .error > iron-icon { | 26 .error > iron-icon { |
| 28 --iron-icon-fill-color: var(--paper-red-500); | 27 --iron-icon-fill-color: var(--paper-red-500); |
| 29 } | 28 } |
| 30 | 29 |
| 31 .align-center { | 30 #pinKeyboardDiv { |
| 32 justify-content: center; | 31 justify-content: center; |
| 33 } | 32 } |
| 34 </style> | 33 </style> |
| 35 | 34 |
| 36 <dialog is="cr-dialog" id="dialog" on-close="close" | 35 <dialog is="cr-dialog" id="dialog" on-close="close" |
| 37 close-text="$i18n{close}"> | 36 close-text="$i18n{close}"> |
| 38 <div class="title">[[getTitleMessage_(isConfirmStep_)]]</div> | 37 <div class="title">[[getTitleMessage_(isConfirmStep_)]]</div> |
| 39 <div class="body"> | 38 <div class="body"> |
| 40 <!-- Warning/error; only shown if title is hidden. Id is needed for | 39 <!-- Warning/error; only shown if title is hidden. Id is needed for |
| 41 tests. --> | 40 tests. --> |
| 42 <div id="problemDiv" class$="[[problemClass_]] settings-box first" | 41 <div id="problemDiv" class$="[[problemClass_]] settings-box first" |
| 43 hidden$="[[!hasProblem_(problemMessage_)]]"> | 42 hidden$="[[!hasProblem_(problemMessage_)]]"> |
| 44 <iron-icon icon="settings:warning"></iron-icon> | 43 <iron-icon icon="settings:warning"></iron-icon> |
| 45 <span class="middle">[[problemMessage_]]</span> | 44 <span class="middle">[[problemMessage_]]</span> |
| 46 </div> | 45 </div> |
| 47 | 46 |
| 48 <!-- Pin keyboard --> | 47 <!-- Pin keyboard --> |
| 49 <div class="align-center settings-box continuation"> | 48 <div id="pinKeyboardDiv" class="settings-box continuation"> |
| 50 <pin-keyboard id="pinKeyboard" on-pin-change="onPinChange_" | 49 <pin-keyboard id="pinKeyboard" on-pin-change="onPinChange_" |
| 51 on-submit="onPinSubmit_" value="{{pinKeyboardValue_}}"> | 50 on-submit="onPinSubmit_" value="{{pinKeyboardValue_}}"> |
| 52 </pin-keyboard> | 51 </pin-keyboard> |
| 53 </div> | 52 </div> |
| 54 | 53 |
| 55 <div class="button-strip"> | 54 <div class="button-strip"> |
| 56 <paper-button class="cancel-button" on-tap="onCancelTap_"> | 55 <paper-button class="cancel-button" on-tap="onCancelTap_"> |
| 57 $i18n{cancel} | 56 $i18n{cancel} |
| 58 </paper-button> | 57 </paper-button> |
| 59 | 58 |
| 60 <paper-button class="action-button" on-tap="onPinSubmit_" | 59 <paper-button class="action-button" on-tap="onPinSubmit_" |
| 61 disabled$="[[!enableSubmit_]]"> | 60 disabled$="[[!enableSubmit_]]"> |
| 62 <span>[[getContinueMessage_(isConfirmStep_)]]</span> | 61 <span>[[getContinueMessage_(isConfirmStep_)]]</span> |
| 63 </paper-button> | 62 </paper-button> |
| 64 </div> | 63 </div> |
| 65 </div> | 64 </div> |
| 66 </dialog> | 65 </dialog> |
| 67 </template> | 66 </template> |
| 68 | 67 |
| 69 <script src="setup_pin_dialog.js"></script> | 68 <script src="setup_pin_dialog.js"></script> |
| 70 </dom-module> | 69 </dom-module> |
| OLD | NEW |