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

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: Browser tests. 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..46145d55fcdf4ca513a5f045fb483240dbe560f6 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">
+ #easy-unlock .start {
jdufault 2017/04/06 21:04:45 nit: use easyUnlock for id name since that's what
sammiequon 2017/04/06 22:23:50 Done.
+ /* Use padding to ensure taller content looks correct. */
+ padding: 11px 0;
+ }
+
.radio-indent {
-webkit-margin-start: 36px;
}
@@ -75,12 +83,63 @@
</div>
</template>
+ <template is="dom-if" if="[[easyUnlockAllowed_]]">
+ <div id="easy-unlock" 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>
+ <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>
+ </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