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

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: prevent clicking toggle from firing handler twice 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
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..ec79c623ae370e14fcdbf596ae800f544c47d369 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -81,10 +81,12 @@
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_"
Dan Beam 2017/02/10 17:20:36 while your mouse is down dragging, other toggles c
scottchen 2017/02/10 18:49:57 it does - see https://drive.google.com/open?id=0By
+ on-tap="doNothing_"
Dan Beam 2017/02/10 17:20:36 this is very similar to https://codereview.chromiu
scottchen 2017/02/10 18:49:57 I think this can be handled if we encapsulate it i
checked="[[safeBrowsingExtendedReportingEnabled_]]">
</paper-toggle-button>
</div>
@@ -104,7 +106,8 @@
</div>
</if><!-- chromeos -->
<if expr="not chromeos">
- <div class="settings-box">
+ <div class="settings-box" on-tap="onMetricsReportingControlTap_"
+ 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 +122,7 @@
</paper-tooltip>
</template>
<paper-toggle-button id="metricsReportingControl"
- on-tap="onMetricsReportingControlTap_"
+ on-change="onMetricsReportingControlTap_" on-tap="doNothing_"
checked="[[metricsReporting_.enabled]]"
disabled="[[metricsReporting_.managed]]">
</paper-toggle-button>

Powered by Google App Engine
This is Rietveld 408576698