Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: chrome/browser/resources/settings/people_page/people_page.html

Issue 2208473007: Rework quick unlock settings to follow new specs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix closure (bad merge) Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 3 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 4 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html">
7 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html "> 8 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
8 <link rel="import" href="/controls/settings_checkbox.html"> 9 <link rel="import" href="/controls/settings_checkbox.html">
9 <link rel="import" href="/people_page/sync_page.html"> 10 <link rel="import" href="/people_page/sync_page.html">
10 <link rel="import" href="/people_page/profile_info_browser_proxy.html"> 11 <link rel="import" href="/people_page/profile_info_browser_proxy.html">
11 <link rel="import" href="/people_page/sync_browser_proxy.html"> 12 <link rel="import" href="/people_page/sync_browser_proxy.html">
12 <link rel="import" href="/route.html"> 13 <link rel="import" href="/route.html">
13 <link rel="import" href="/settings_page/settings_animated_pages.html"> 14 <link rel="import" href="/settings_page/settings_animated_pages.html">
14 <link rel="import" href="/settings_page/settings_subpage.html"> 15 <link rel="import" href="/settings_page/settings_subpage.html">
15 <link rel="import" href="/settings_shared_css.html"> 16 <link rel="import" href="/settings_shared_css.html">
16 17
17 <if expr="chromeos"> 18 <if expr="chromeos">
18 <link rel="import" href="/people_page/change_picture.html"> 19 <link rel="import" href="/people_page/change_picture.html">
19 <link rel="import" href="/people_page/easy_unlock_browser_proxy.html"> 20 <link rel="import" href="/people_page/easy_unlock_browser_proxy.html">
20 <link rel="import" href="/people_page/easy_unlock_turn_off_dialog.html"> 21 <link rel="import" href="/people_page/easy_unlock_turn_off_dialog.html">
21 <link rel="import" href="/people_page/quick_unlock_authenticate.html"> 22 <link rel="import" href="/people_page/lock_screen.html">
22 <link rel="import" href="/people_page/quick_unlock_choose_method.html"> 23 <link rel="import" href="/people_page/lock_state_behavior.html">
23 <link rel="import" href="/people_page/quick_unlock_setup_pin.html">
24 <link rel="import" href="/people_page/users_page.html"> 24 <link rel="import" href="/people_page/users_page.html">
25 </if> 25 </if>
26 <if expr="not chromeos"> 26 <if expr="not chromeos">
27 <link rel="import" href="/people_page/manage_profile.html"> 27 <link rel="import" href="/people_page/manage_profile.html">
28 </if> 28 </if>
29 29
30 <dom-module id="settings-people-page"> 30 <dom-module id="settings-people-page">
31 <template> 31 <template>
32 <style include="settings-shared"> 32 <style include="settings-shared">
33 setting-box.middle { 33 setting-box.middle {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 <div class="icon-container"> 153 <div class="icon-container">
154 <div id="googleg-logo"></div> 154 <div id="googleg-logo"></div>
155 </div> 155 </div>
156 <div class="middle"> 156 <div class="middle">
157 <div>$i18n{personalizeGoogleServicesTitle}</div> 157 <div>$i18n{personalizeGoogleServicesTitle}</div>
158 <div class="secondary">$i18n{personalizeGoogleServicesText}</div> 158 <div class="secondary">$i18n{personalizeGoogleServicesText}</div>
159 </div> 159 </div>
160 </div> 160 </div>
161 161
162 <if expr="chromeos"> 162 <if expr="chromeos">
163 <div class="settings-box single-column"> 163 <template is="dom-if" if="[[!quickUnlockEnabled_]]">
164 <settings-checkbox pref="{{prefs.settings.enable_screen_lock}}" 164 <div class="settings-box single-column">
165 label="$i18n{enableScreenlock}"> 165 <settings-checkbox pref="{{prefs.settings.enable_screen_lock}}"
166 </settings-checkbox> 166 label="$i18n{enableScreenlock}">
167 </div> 167 </settings-checkbox>
168
169 <!-- TODO(jdufault): Disable navigating to /quickUnlock/* if pin is
170 disabled. -->
171 <template is="dom-if" if=[[quickUnlockEnabled_]]>
172 <div class="settings-box">
173 <paper-button on-tap="onQuickUnlockTap_" class="primary-button">
174 $i18n{quickUnlockTitle}
175 </paper-button>
176 </div> 168 </div>
177 </template> 169 </template>
178 170
171 <template is="dom-if" if="[[quickUnlockEnabled_]]">
172 <div class="settings-box two-line" actionable
173 on-tap="onConfigureLockTap_">
174 <div class="middle">
175 <div>$i18n{lockScreenTitle}</div>
176 <div class="secondary">
177 [[getPasswordState_(hasPin,
178 prefs.settings.enable_screen_lock.value)]]
179 </div>
180 </div>
181 </div>
182 </template>
183
179 <template is="dom-if" if="[[easyUnlockAllowed_]]"> 184 <template is="dom-if" if="[[easyUnlockAllowed_]]">
180 <div class="settings-box"> 185 <div class="settings-box">
181 <div class="middle"> 186 <div class="middle">
182 <div>$i18n{easyUnlockSectionTitle}</div> 187 <div>$i18n{easyUnlockSectionTitle}</div>
183 <div class="secondary"> 188 <div class="secondary">
184 <template is="dom-if" if="[[!easyUnlockEnabled_]]"> 189 <template is="dom-if" if="[[!easyUnlockEnabled_]]">
185 $i18n{easyUnlockSetupIntro} 190 $i18n{easyUnlockSetupIntro}
186 </template> 191 </template>
187 <template is="dom-if" if="[[easyUnlockEnabled_]]"> 192 <template is="dom-if" if="[[easyUnlockEnabled_]]">
188 $i18n{easyUnlockDescription} 193 $i18n{easyUnlockDescription}
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 <template is="dom-if" if="[[isAdvancedSyncSettingsVisible_(syncStatus)]]"> 242 <template is="dom-if" if="[[isAdvancedSyncSettingsVisible_(syncStatus)]]">
238 <template is="dom-if" name="sync"> 243 <template is="dom-if" name="sync">
239 <settings-subpage 244 <settings-subpage
240 associated-control="[[$$('#customize-sync')]]" 245 associated-control="[[$$('#customize-sync')]]"
241 page-title="$i18n{syncPageTitle}"> 246 page-title="$i18n{syncPageTitle}">
242 <settings-sync-page></settings-sync-page> 247 <settings-sync-page></settings-sync-page>
243 </settings-subpage> 248 </settings-subpage>
244 </template> 249 </template>
245 </template> 250 </template>
246 <if expr="chromeos"> 251 <if expr="chromeos">
247 <template is="dom-if" name="quick-unlock-authenticate" no-search> 252 <template is="dom-if" if="[[quickUnlockEnabled_]]">
248 <settings-subpage page-title="$i18n{quickUnlockTitle}"> 253 <template is="dom-if" name="lockScreen">
249 <settings-quick-unlock-authenticate 254 <settings-subpage page-title="$i18n{lockScreenTitle}">
250 set-modes="{{quickUnlockSetModes}}" 255 <settings-lock-screen
251 profile-name="[[profileName_]]"> 256 prefs="{{prefs}}">
252 </settings-quick-unlock-authenticate> 257 </settings-lock-screen>
253 </settings-subpage> 258 </settings-subpage>
254 </template> 259 </template>
255 <template is="dom-if" name="quick-unlock-choose-method" no-search>
256 <settings-subpage page-title="$i18n{quickUnlockTitle}">
257 <settings-quick-unlock-choose-method
258 set-modes="[[quickUnlockSetModes]]" prefs="{{prefs}}">
259 </settings-quick-unlock-choose-method>
260 </settings-subpage>
261 </template>
262 <template is="dom-if" name="quick-unlock-setup-pin" no-search>
263 <settings-subpage page-title="$i18n{quickUnlockTitle}">
264 <settings-quick-unlock-setup-pin set-modes="[[quickUnlockSetModes]]">
265 </settings-quick-unlock-setup-pin>
266 </settings-subpage>
267 </template> 260 </template>
268 <template is="dom-if" name="users"> 261 <template is="dom-if" name="users">
269 <settings-subpage 262 <settings-subpage
270 associated-control="[[$$('#manage-other-people-subpage-trigger')]]" 263 associated-control="[[$$('#manage-other-people-subpage-trigger')]]"
271 page-title="$i18n{usersPageTitle}"> 264 page-title="$i18n{usersPageTitle}">
272 <settings-users-page prefs="{{prefs}}"></settings-users-page> 265 <settings-users-page prefs="{{prefs}}"></settings-users-page>
273 </settings-subpage> 266 </settings-subpage>
274 </template> 267 </template>
275 <template is="dom-if" name="changePicture"> 268 <template is="dom-if" name="changePicture">
276 <settings-subpage 269 <settings-subpage
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 314
322 <if expr="chromeos"> 315 <if expr="chromeos">
323 <template is="dom-if" if="[[easyUnlockEnabled_]]"> 316 <template is="dom-if" if="[[easyUnlockEnabled_]]">
324 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog"> 317 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog">
325 </easy-unlock-turn-off-dialog> 318 </easy-unlock-turn-off-dialog>
326 </template> 319 </template>
327 </if> 320 </if>
328 </template> 321 </template>
329 <script src="people_page.js"></script> 322 <script src="people_page.js"></script>
330 </dom-module> 323 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698