OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/html/action_link.html"> | |
3 <link rel="import" href="chrome://resources/html/action_link_css.html"> | |
4 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
5 <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"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper
-radio-group.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper
-radio-group.html"> |
8 <link rel="import" href="../controls/settings_toggle_button.html"> | 6 <link rel="import" href="../controls/settings_toggle_button.html"> |
9 <link rel="import" href="easy_unlock_browser_proxy.html"> | 7 <link rel="import" href="easy_unlock_browser_proxy.html"> |
10 <link rel="import" href="easy_unlock_turn_off_dialog.html"> | 8 <link rel="import" href="easy_unlock_turn_off_dialog.html"> |
11 <link rel="import" href="fingerprint_browser_proxy.html"> | 9 <link rel="import" href="fingerprint_browser_proxy.html"> |
12 <link rel="import" href="lock_screen_constants.html"> | 10 <link rel="import" href="lock_screen_constants.html"> |
13 <link rel="import" href="lock_state_behavior.html"> | 11 <link rel="import" href="lock_state_behavior.html"> |
14 <link rel="import" href="password_prompt_dialog.html"> | 12 <link rel="import" href="password_prompt_dialog.html"> |
15 <link rel="import" href="setup_pin_dialog.html"> | 13 <link rel="import" href="setup_pin_dialog.html"> |
16 <link rel="import" href="../i18n_setup.html"> | 14 <link rel="import" href="../i18n_setup.html"> |
17 <link rel="import" href="../prefs/prefs_behavior.html"> | 15 <link rel="import" href="../prefs/prefs_behavior.html"> |
18 <link rel="import" href="../prefs/prefs.html"> | 16 <link rel="import" href="../prefs/prefs.html"> |
19 <link rel="import" href="../route.html"> | 17 <link rel="import" href="../route.html"> |
20 <link rel="import" href="../settings_shared_css.html"> | 18 <link rel="import" href="../settings_shared_css.html"> |
21 | 19 |
22 <dom-module id="settings-lock-screen"> | 20 <dom-module id="settings-lock-screen"> |
23 <template> | 21 <template> |
24 <style include="settings-shared action-link"> | 22 <style include="settings-shared action-link"> |
25 #easyUnlock .start { | 23 #easyUnlock .start { |
26 /* When the easy unlock toggle is shown, the easy unlock section's | 24 /* When the easy unlock toggle is shown, the easy unlock section's |
27 * content becomes squashed to the top and bottom edges. Use padding to | 25 * content becomes squashed to the top and bottom edges. Use padding to |
28 * ensure the easy unlock content looks correct. */ | 26 * ensure the easy unlock content looks correct. */ |
29 padding: 11px 0; | 27 padding: 11px 0; |
30 } | 28 } |
31 | 29 |
32 .radio-indent { | 30 paper-radio-button { |
33 -webkit-margin-start: 36px; | 31 --paper-radio-button-label: { |
| 32 display: flex; |
| 33 width: 100%; |
| 34 }; |
| 35 } |
| 36 |
| 37 paper-radio-button > .start { |
| 38 flex: 1; |
34 } | 39 } |
35 </style> | 40 </style> |
36 | 41 |
37 <div> | 42 <div> |
38 <div class="list-frame"> | 43 <div class="list-frame"> |
39 <paper-radio-group id="unlockType" selected="{{selectedUnlockType}}"> | 44 <paper-radio-group id="unlockType" selected="{{selectedUnlockType}}"> |
40 <paper-radio-button name="password"> | 45 <paper-radio-button name="password"> |
41 $i18n{lockScreenPasswordOnly} | 46 <div class="start"> |
| 47 $i18n{lockScreenPasswordOnly} |
| 48 <div class="secondary"> |
| 49 $i18n{lockScreenHighSecurity} |
| 50 </div> |
| 51 </div> |
42 </paper-radio-button> | 52 </paper-radio-button> |
43 <paper-radio-button name="pin+password"> | 53 <paper-radio-button name="pin+password"> |
44 $i18n{lockScreenPinOrPassword} | 54 <div class="start"> |
| 55 $i18n{lockScreenPinOrPassword} |
| 56 <div class="secondary"> |
| 57 $i18n{lockScreenMediumSecurity} |
| 58 </div> |
| 59 </div> |
| 60 <template is="dom-if" |
| 61 if="[[showConfigurePinButton_(selectedUnlockType)]]"> |
| 62 <paper-button id="setupPinButton" class="secondary-button" |
| 63 on-tap="onConfigurePin_"> |
| 64 [[getSetupPinText_(hasPin)]] |
| 65 </paper-button> |
| 66 </template> |
45 </paper-radio-button> | 67 </paper-radio-button> |
46 </paper-radio-group> | 68 </paper-radio-group> |
47 <div class="list-item radio-indent" | |
48 hidden$="[[!showConfigurePinButton_(selectedUnlockType)]]"> | |
49 <a id="setupPinLink" is="action-link" class="list-button" | |
50 on-tap="onConfigurePin_"> | |
51 [[getSetupPinText_(hasPin)]] | |
52 </a> | |
53 </div> | |
54 </div> | 69 </div> |
55 | 70 |
56 <div id="screenLockDiv" class="settings-box"> | 71 <div id="screenLockDiv" class="settings-box"> |
57 <settings-toggle-button class="start" | 72 <settings-toggle-button class="start" |
58 pref="{{prefs.settings.enable_screen_lock}}" | 73 pref="{{prefs.settings.enable_screen_lock}}" |
59 label="$i18n{enableScreenlock}"> | 74 label="$i18n{enableScreenlock}"> |
60 </settings-toggle-button> | 75 </settings-toggle-button> |
61 </div> | 76 </div> |
62 | 77 |
63 <template is="dom-if" if="[[fingerprintUnlockEnabled_]]"> | 78 <template is="dom-if" if="[[fingerprintUnlockEnabled_]]"> |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 <template is="dom-if" if="[[showEasyUnlockTurnOffDialog_]]"> | 149 <template is="dom-if" if="[[showEasyUnlockTurnOffDialog_]]"> |
135 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog" | 150 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog" |
136 on-close="onEasyUnlockTurnOffDialogClose_"> | 151 on-close="onEasyUnlockTurnOffDialogClose_"> |
137 </easy-unlock-turn-off-dialog> | 152 </easy-unlock-turn-off-dialog> |
138 </template> | 153 </template> |
139 </div> | 154 </div> |
140 </template> | 155 </template> |
141 | 156 |
142 <script src="lock_screen.js"></script> | 157 <script src="lock_screen.js"></script> |
143 </dom-module> | 158 </dom-module> |
OLD | NEW |