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

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: Rebase 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 <div class="icon-container"> 154 <div class="icon-container">
155 <div id="googleg-logo"></div> 155 <div id="googleg-logo"></div>
156 </div> 156 </div>
157 <div class="middle"> 157 <div class="middle">
158 <div>$i18n{personalizeGoogleServicesTitle}</div> 158 <div>$i18n{personalizeGoogleServicesTitle}</div>
159 <div class="secondary">$i18n{personalizeGoogleServicesText}</div> 159 <div class="secondary">$i18n{personalizeGoogleServicesText}</div>
160 </div> 160 </div>
161 </div> 161 </div>
162 162
163 <if expr="chromeos"> 163 <if expr="chromeos">
164 <div class="settings-box single-column"> 164 <template is="dom-if" if="[[!quickUnlockEnabled_]]">
165 <settings-checkbox pref="{{prefs.settings.enable_screen_lock}}" 165 <div class="settings-box single-column">
166 label="$i18n{enableScreenlock}"> 166 <settings-checkbox pref="{{prefs.settings.enable_screen_lock}}"
167 </settings-checkbox> 167 label="$i18n{enableScreenlock}">
168 </div> 168 </settings-checkbox>
169
170 <!-- TODO(jdufault): Disable navigating to /quickUnlock/* if pin is
171 disabled. -->
172 <template is="dom-if" if=[[quickUnlockEnabled_]]>
173 <div id="quick-unlock-subpage-trigger" class="settings-box">
174 <paper-button on-tap="onQuickUnlockTap_" class="primary-button">
175 $i18n{quickUnlockTitle}
176 </paper-button>
177 </div> 169 </div>
178 </template> 170 </template>
179 171
172 <template is="dom-if" if="[[quickUnlockEnabled_]]">
173 <div class="settings-box two-line" actionable
174 on-tap="onConfigureLockTap_">
175 <div class="middle">
176 <div>$i18n{lockScreenTitle}</div>
177 <div class="secondary">
178 [[getPasswordState_(hasPin,
179 prefs.settings.enable_screen_lock.value)]]
180 </div>
181 </div>
182 </div>
183 </template>
184
180 <template is="dom-if" if="[[easyUnlockAllowed_]]"> 185 <template is="dom-if" if="[[easyUnlockAllowed_]]">
181 <div class="settings-box"> 186 <div class="settings-box">
182 <div class="middle"> 187 <div class="middle">
183 <div>$i18n{easyUnlockSectionTitle}</div> 188 <div>$i18n{easyUnlockSectionTitle}</div>
184 <div class="secondary"> 189 <div class="secondary">
185 <template is="dom-if" if="[[!easyUnlockEnabled_]]"> 190 <template is="dom-if" if="[[!easyUnlockEnabled_]]">
186 $i18n{easyUnlockSetupIntro} 191 $i18n{easyUnlockSetupIntro}
187 </template> 192 </template>
188 <template is="dom-if" if="[[easyUnlockEnabled_]]"> 193 <template is="dom-if" if="[[easyUnlockEnabled_]]">
189 $i18n{easyUnlockDescription} 194 $i18n{easyUnlockDescription}
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 </neon-animatable> 242 </neon-animatable>
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 current-route="[[currentRoute]]"> 247 <settings-sync-page current-route="[[currentRoute]]">
243 </settings-sync-page> 248 </settings-sync-page>
244 </settings-subpage> 249 </settings-subpage>
245 </template> 250 </template>
246 <if expr="chromeos"> 251 <if expr="chromeos">
247 <template is="dom-if" name="quick-unlock-authenticate"> 252 <template is="dom-if" if="[[quickUnlockEnabled_]]">
248 <settings-subpage 253 <template is="dom-if" name="lockScreen">
249 associated-control="[[$$('#quick-unlock-subpage-trigger')]]" 254 <settings-subpage page-title="$i18n{lockScreenTitle}">
250 page-title="$i18n{quickUnlockTitle}"> 255 <settings-lock-screen
251 <settings-quick-unlock-authenticate 256 prefs="{{prefs}}">
252 set-modes="{{quickUnlockSetModes}}" 257 </settings-lock-screen>
253 current-route="{{currentRoute}}" 258 </settings-subpage>
254 profile-name="[[profileName_]]"> 259 </template>
255 </settings-quick-unlock-authenticate>
256 </settings-subpage>
257 </template>
258 <template is="dom-if" name="quick-unlock-choose-method">
259 <settings-subpage no-associated-control
260 page-title="$i18n{quickUnlockTitle}">
261 <settings-quick-unlock-choose-method
262 set-modes="[[quickUnlockSetModes]]"
263 current-route="{{currentRoute}}"
264 prefs="{{prefs}}">
265 </settings-quick-unlock-choose-method>
266 </settings-subpage>
267 </template>
268 <template is="dom-if" name="quick-unlock-setup-pin">
269 <settings-subpage no-associated-control
270 page-title="$i18n{quickUnlockTitle}">
271 <settings-quick-unlock-setup-pin
272 set-modes="[[quickUnlockSetModes]]"
273 current-route="{{currentRoute}}">
274 </settings-quick-unlock-setup-pin>
275 </settings-subpage>
276 </template> 260 </template>
277 <template is="dom-if" name="users"> 261 <template is="dom-if" name="users">
278 <settings-subpage 262 <settings-subpage
279 associated-control="[[$$('#manage-other-people-subpage-trigger')]]" 263 associated-control="[[$$('#manage-other-people-subpage-trigger')]]"
280 page-title="$i18n{usersPageTitle}"> 264 page-title="$i18n{usersPageTitle}">
281 <settings-users-page prefs="{{prefs}}"></settings-users-page> 265 <settings-users-page prefs="{{prefs}}"></settings-users-page>
282 </settings-subpage> 266 </settings-subpage>
283 </template> 267 </template>
284 <template is="dom-if" name="changePicture"> 268 <template is="dom-if" name="changePicture">
285 <settings-subpage 269 <settings-subpage
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 314
331 <if expr="chromeos"> 315 <if expr="chromeos">
332 <template is="dom-if" if="[[easyUnlockEnabled_]]"> 316 <template is="dom-if" if="[[easyUnlockEnabled_]]">
333 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog"> 317 <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog">
334 </easy-unlock-turn-off-dialog> 318 </easy-unlock-turn-off-dialog>
335 </template> 319 </template>
336 </if> 320 </if>
337 </template> 321 </template>
338 <script src="people_page.js"></script> 322 <script src="people_page.js"></script>
339 </dom-module> 323 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698