diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-02-13 10:55:42 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-05 13:33:38 +0000 |
commit | 248b70b82a40964d5594eb04feca0fa36716185d (patch) | |
tree | 44e31d9dd0ac2cb79f48633eefbc5496e013c347 /chromium/chrome/browser/resources/settings/controls/settings_checkbox.js | |
parent | cabfcdd1db482729ded525feae56911a99792773 (diff) | |
download | qtwebengine-chromium-248b70b82a40964d5594eb04feca0fa36716185d.tar.gz |
BASELINE: Update Chromium to 79.0.3945.147
And new simplified snapshot filter
Change-Id: I7c692bedd5b3833f05565bd6f6939115350b233a
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/chrome/browser/resources/settings/controls/settings_checkbox.js')
-rw-r--r-- | chromium/chrome/browser/resources/settings/controls/settings_checkbox.js | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/chromium/chrome/browser/resources/settings/controls/settings_checkbox.js b/chromium/chrome/browser/resources/settings/controls/settings_checkbox.js deleted file mode 100644 index 3bc4f6c49a4..00000000000 --- a/chromium/chrome/browser/resources/settings/controls/settings_checkbox.js +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2015 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview - * `settings-checkbox` is a checkbox that controls a supplied preference. - */ -Polymer({ - is: 'settings-checkbox', - - behaviors: [SettingsBooleanControlBehavior], - - properties: { - /** - * Alternative source for the sub-label that can contain html markup. - * Only use with trusted input. - */ - subLabelHtml: { - type: String, - value: '', - observer: 'onSubLabelHtmlChanged_', - }, - }, - - observers: [ - 'onSubLabelChanged_(subLabel, subLabelHtml)', - ], - - /** @private */ - onSubLabelChanged_: function() { - this.$.checkbox.ariaDescription = this.$.subLabel.textContent; - }, - - /** - * Don't let clicks on a link inside the secondary label reach the checkbox. - * @private - */ - onSubLabelHtmlChanged_: function() { - const links = this.root.querySelectorAll('.secondary.label a'); - links.forEach((link) => { - link.addEventListener('click', this.stopPropagation); - }); - }, - - /** - * @param {!Event} event - * @private - */ - stopPropagation: function(event) { - event.stopPropagation(); - }, - - /** - * @param {string} subLabel - * @param {string} subLabelHtml - * @return {boolean} Whether there is a subLabel - * @private - */ - hasSubLabel_: function(subLabel, subLabelHtml) { - return !!subLabel || !!subLabelHtml; - }, - -}); |