| OLD | NEW |
| 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); |
| 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 Loading... |
| 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 } |
| OLD | NEW |