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

Unified Diff: chrome/browser/resources/settings/privacy_page/privacy_page.html

Issue 2688073002: MD Settings: For rows containing paper-toggle-buttons, make entire row clickable. (Closed)
Patch Set: convert a more complicated row Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/privacy_page/privacy_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/privacy_page/privacy_page.html
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.html b/chrome/browser/resources/settings/privacy_page/privacy_page.html
index 4bf462434a60e6f650baab76ea9c82b6e52718f2..a3c026c88c82ab8e03d283994569e8573eca35cd 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -81,10 +81,11 @@
label="$i18n{networkPredictionEnabled}">
</settings-toggle-button>
</div>
- <div class="settings-box">
+ <div class="settings-box" actionable
+ on-tap="onSafeBrowsingExtendedReportingControlTap_">
<div class="start">$i18n{safeBrowsingEnableExtendedReporting}</div>
<paper-toggle-button id="safeBrowsingExtendedReportingControl"
- on-tap="onSafeBrowsingExtendedReportingControlTap_"
+ on-change="onSafeBrowsingExtendedReportingControlTap_"
checked="[[safeBrowsingExtendedReportingEnabled_]]">
</paper-toggle-button>
</div>
@@ -104,7 +105,8 @@
</div>
</if><!-- chromeos -->
<if expr="not chromeos">
- <div class="settings-box">
+ <div class="settings-box" on-tap="onMetricsReportingControlTap_"
Dan Beam 2017/02/10 07:11:36 this changes the clickable area (compared to other
Dan Beam 2017/02/10 07:11:36 when you tap the box, you want to invert the value
+ actionable$="[[!metricsReporting_.managed]]">
<div class="start">$i18n{enableLogging}</div>
<template is="dom-if" if="[[showRestart_]]" restamp>
<paper-button on-tap="onRestartTap_" id="restart">
@@ -119,7 +121,7 @@
</paper-tooltip>
</template>
<paper-toggle-button id="metricsReportingControl"
- on-tap="onMetricsReportingControlTap_"
+ on-change="onMetricsReportingControlTap_"
Dan Beam 2017/02/10 07:11:36 but when this changes, you DON'T want to invert th
Dan Beam 2017/02/10 07:11:36 this doesn't work when you drag the toggle
Dan Beam 2017/02/10 07:14:51 allllso, when you tap on the toggle, you get doubl
scottchen 2017/02/10 18:49:57 Acknowledged. Fixed with a later patch.
scottchen 2017/02/10 18:49:57 on-tap doesn't fire, but on-change seems to fire w
scottchen 2017/02/10 18:49:57 depends on which value. You don't wanna invert .ch
checked="[[metricsReporting_.enabled]]"
disabled="[[metricsReporting_.managed]]">
</paper-toggle-button>
« no previous file with comments | « no previous file | chrome/browser/resources/settings/privacy_page/privacy_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698