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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/RenderingOptions.js

Issue 2776263006: [DevTools] Migrate checkbox label to a proper web component (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/devtools/front_end/main/RenderingOptions.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/RenderingOptions.js b/third_party/WebKit/Source/devtools/front_end/main/RenderingOptions.js
index a079438d23c4956d0eca1b9d7010e857502b09ed..8613deca5f52f392c6529fb223993d88717dfe82 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/RenderingOptions.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/RenderingOptions.js
@@ -68,7 +68,7 @@ Main.RenderingOptionsView = class extends UI.VBox {
this.contentElement.createChild('div').classList.add('panel-section-separator');
var cssMediaSubtitle = Common.UIString('Forces media type for testing print and screen styles');
- var checkboxLabel = UI.createCheckboxLabel(Common.UIString('Emulate CSS Media'), false, cssMediaSubtitle);
+ var checkboxLabel = UI.CheckboxLabel.create(Common.UIString('Emulate CSS Media'), false, cssMediaSubtitle);
this._mediaCheckbox = checkboxLabel.checkboxElement;
this._mediaCheckbox.addEventListener('click', this._mediaToggled.bind(this), false);
this.contentElement.appendChild(checkboxLabel);
@@ -98,7 +98,7 @@ Main.RenderingOptionsView = class extends UI.VBox {
* @param {string=} subtitle
*/
_appendCheckbox(label, setterName, subtitle) {
- var checkboxLabel = UI.createCheckboxLabel(label, false, subtitle);
+ var checkboxLabel = UI.CheckboxLabel.create(label, false, subtitle);
this._settings.set(setterName, checkboxLabel.checkboxElement);
checkboxLabel.checkboxElement.addEventListener('click', this._settingToggled.bind(this, setterName));
this.contentElement.appendChild(checkboxLabel);

Powered by Google App Engine
This is Rietveld 408576698