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

Unified Diff: chrome/browser/resources/settings/people_page/lock_screen.html

Issue 2787153002: MD Settings: Move easy unlock from people to lock screen. (Closed)
Patch Set: Comment. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/people_page/lock_screen.html
diff --git a/chrome/browser/resources/settings/people_page/lock_screen.html b/chrome/browser/resources/settings/people_page/lock_screen.html
index 6064de35743ba894196a7ab1beff9400ffc053e6..f9030fc4e3ffb6de324d616fc491abbbdf32e4e6 100644
--- a/chrome/browser/resources/settings/people_page/lock_screen.html
+++ b/chrome/browser/resources/settings/people_page/lock_screen.html
@@ -2,9 +2,12 @@
<link rel="import" href="chrome://resources/html/action_link.html">
<link rel="import" href="chrome://resources/html/action_link_css.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
+<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper-radio-group.html">
<link rel="import" href="../controls/settings_toggle_button.html">
+<link rel="import" href="easy_unlock_browser_proxy.html">
+<link rel="import" href="easy_unlock_turn_off_dialog.html">
<link rel="import" href="fingerprint_browser_proxy.html">
<link rel="import" href="lock_screen_constants.html">
<link rel="import" href="lock_state_behavior.html">
@@ -19,6 +22,11 @@
<dom-module id="settings-lock-screen">
<template>
<style include="settings-shared action-link">
+ #easyUnlock .start {
+ /* Use padding to ensure taller content looks correct. */
+ padding: 11px 0;
stevenjb 2017/04/07 17:54:18 We try to avoid this sort of thing as much as poss
sammiequon 2017/04/11 00:28:44 I'm not entirely sure what this does. I played aro
stevenjb 2017/04/11 17:29:37 Ah. Yeah, in that context I gave the benefit of th
+ }
+
.radio-indent {
-webkit-margin-start: 36px;
}
@@ -75,12 +83,63 @@
</div>
</template>
+ <template is="dom-if" if="[[easyUnlockAllowed_]]">
+ <div id="easyUnlock" class="settings-box two-line">
+ <div class="start">
+ <div>$i18n{easyUnlockSectionTitle}</div>
+ <div class="secondary">
+ <template is="dom-if" if="[[!easyUnlockEnabled_]]">
+ $i18n{easyUnlockSetupIntro}
+ </template>
+ <template is="dom-if" if="[[easyUnlockEnabled_]]">
+ $i18n{easyUnlockDescription}
+ </template>
stevenjb 2017/04/07 17:54:18 Instead of having two templated sections here, jus
sammiequon 2017/04/11 00:28:44 Done.
+ <a target="_blank" href="$i18n{easyUnlockLearnMoreURL}">
+ $i18n{learnMore}
+ </a>
+ <!-- TODO(dbeam): this should be 1 dom-if with a method instead
+ of 2 nested dom-ifs. -->
+ <template is="dom-if" if="[[easyUnlockEnabled_]]">
+ <template is="dom-if"
+ if="[[easyUnlockProximityDetectionAllowed_]]">
+ <settings-toggle-button
+ pref="{{prefs.easy_unlock.proximity_required}}"
+ label="$i18n{easyUnlockRequireProximityLabel}">
+ </settings-toggle-button>
+ </template>
+ </template>
stevenjb 2017/04/07 17:54:18 Let's clean this up as Dan suggested: if="[[getSh
sammiequon 2017/04/11 00:28:44 Done.
+ </div>
+ </div>
+ <div class="secondary-action">
+ <template is="dom-if" if="[[!easyUnlockEnabled_]]">
+ <paper-button id="easyUnlockSetup" class="secondary-button"
+ on-tap="onEasyUnlockSetupTap_">
+ $i18n{easyUnlockSetupButton}
+ </paper-button>
+ </template>
+ <template is="dom-if" if="[[easyUnlockEnabled_]]">
+ <paper-button id="easyUnlockTurnOff" class="secondary-button"
+ on-tap="onEasyUnlockTurnOffTap_">
+ $i18n{easyUnlockTurnOffButton}
+ </paper-button>
+ </template>
+ </div>
+ </div>
+ </template>
+
<settings-password-prompt-dialog id="passwordPrompt"
on-close="onPasswordClosed_" set-modes="{{setModes_}}">
</settings-password-prompt-dialog>
+
<settings-setup-pin-dialog id="setupPin" on-done="onPinSetupDone_"
set-modes="[[setModes_]]">
</settings-setup-pin-dialog>
+
+ <template is="dom-if" if="[[showEasyUnlockTurnOffDialog_]]">
+ <easy-unlock-turn-off-dialog id="easyUnlockTurnOffDialog"
+ on-close="onEasyUnlockTurnOffDialogClose_">
+ </easy-unlock-turn-off-dialog>
+ </template>
</div>
</template>

Powered by Google App Engine
This is Rietveld 408576698