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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/settings/FrameworkBlackboxDialog.js

Issue 1397403003: [DevTools] Remove HelpScreen, turn SettingsScreen into dialog and web component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screens
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {WebInspector.VBox} 9 * @extends {WebInspector.VBox}
10 */ 10 */
11 WebInspector.FrameworkBlackboxDialog = function() 11 WebInspector.FrameworkBlackboxDialog = function()
12 { 12 {
13 WebInspector.VBox.call(this); 13 WebInspector.VBox.call(this);
yurys 2015/10/13 00:52:11 Should we make this a component too?
dgozman 2015/10/13 01:57:42 Not that easy to do - requires splitting settingsS
14 this.registerRequiredCSS("settings/settingsScreen.css");
14 this.element.classList.add("blackbox-dialog", "dialog-contents", "settings-d ialog", "settings-tab"); 15 this.element.classList.add("blackbox-dialog", "dialog-contents", "settings-d ialog", "settings-tab");
15 this.element.addEventListener("keydown", this._onKeyDown.bind(this), false); 16 this.element.addEventListener("keydown", this._onKeyDown.bind(this), false);
16 17
17 var header = this.element.createChild("div", "header"); 18 var header = this.element.createChild("div", "header");
18 header.createChild("span").textContent = WebInspector.UIString("Framework bl ackbox patterns"); 19 header.createChild("span").textContent = WebInspector.UIString("Framework bl ackbox patterns");
19 20
20 var contents = this.element.createChild("div", "contents"); 21 var contents = this.element.createChild("div", "contents");
21 22
22 var contentScriptsSection = contents.createChild("div", "blackbox-content-sc ripts"); 23 var contentScriptsSection = contents.createChild("div", "blackbox-content-sc ripts");
23 contentScriptsSection.appendChild(WebInspector.SettingsUI.createSettingCheck box(WebInspector.UIString("Blackbox content scripts"), WebInspector.moduleSettin g("skipContentScripts"), true)); 24 contentScriptsSection.appendChild(WebInspector.SettingsUI.createSettingCheck box(WebInspector.UIString("Blackbox content scripts"), WebInspector.moduleSettin g("skipContentScripts"), true));
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 _onKeyDown: function(event) 183 _onKeyDown: function(event)
183 { 184 {
184 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) { 185 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) {
185 event.consume(true); 186 event.consume(true);
186 this.element.focus(); 187 this.element.focus();
187 } 188 }
188 }, 189 },
189 190
190 __proto__: WebInspector.VBox.prototype 191 __proto__: WebInspector.VBox.prototype
191 } 192 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698