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.DialogDelegate} | 9 * @extends {WebInspector.DialogDelegate} |
10 */ | 10 */ |
11 WebInspector.FrameworkBlackboxDialog = function() | 11 WebInspector.FrameworkBlackboxDialog = function() |
12 { | 12 { |
13 WebInspector.DialogDelegate.call(this); | 13 WebInspector.DialogDelegate.call(this); |
14 | 14 |
15 this.element = document.createElementWithClass("div", "blackbox-dialog dialo
g-contents"); | 15 this.element = document.createElementWithClass("div", "blackbox-dialog dialo
g-contents"); |
16 | 16 |
17 var header = this.element.createChild("div", "header"); | 17 var header = this.element.createChild("div", "header"); |
18 header.createChild("span").textContent = WebInspector.UIString("Framework bl
ackbox patterns"); | 18 header.createChild("span").textContent = WebInspector.UIString("Framework bl
ackbox patterns"); |
19 | 19 |
20 var closeButton = header.createChild("div", "close-button-gray done-button")
; | 20 var closeButton = header.createChild("div", "close-button-gray done-button")
; |
21 closeButton.addEventListener("click", this._onDoneClick.bind(this), false); | 21 closeButton.addEventListener("click", this._onDoneClick.bind(this), false); |
22 | 22 |
23 var contents = this.element.createChild("div", "contents"); | 23 var contents = this.element.createChild("div", "contents"); |
24 | 24 |
| 25 var contentScriptsSection = contents.createChild("div", "blackbox-content-sc
ripts"); |
| 26 contentScriptsSection.appendChild(WebInspector.SettingsUI.createSettingCheck
box(WebInspector.UIString("Blackbox content scripts"), WebInspector.settings.ski
pContentScripts, true)); |
| 27 |
25 var blockHeader = contents.createChild("div", "columns-header"); | 28 var blockHeader = contents.createChild("div", "columns-header"); |
26 blockHeader.createChild("span").textContent = WebInspector.UIString("URI pat
tern"); | 29 blockHeader.createChild("span").textContent = WebInspector.UIString("URI pat
tern"); |
27 blockHeader.createChild("span").textContent = WebInspector.UIString("Behavio
r"); | 30 blockHeader.createChild("span").textContent = WebInspector.UIString("Behavio
r"); |
28 | 31 |
29 var section = contents.createChild("div", "section"); | 32 var section = contents.createChild("div", "section"); |
30 var container = section.createChild("div", "settings-list-container"); | 33 var container = section.createChild("div", "settings-list-container"); |
31 | 34 |
32 this._blackboxLabel = WebInspector.UIString("Blackbox"); | 35 this._blackboxLabel = WebInspector.UIString("Blackbox"); |
33 this._disabledLabel = WebInspector.UIString("Disabled"); | 36 this._disabledLabel = WebInspector.UIString("Disabled"); |
34 | 37 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 var nodeName = focusElement && focusElement.nodeName.toLowerCase(); | 228 var nodeName = focusElement && focusElement.nodeName.toLowerCase(); |
226 if (nodeName === "input" || nodeName === "select") { | 229 if (nodeName === "input" || nodeName === "select") { |
227 this.focus(); | 230 this.focus(); |
228 event.consume(true); | 231 event.consume(true); |
229 return; | 232 return; |
230 } | 233 } |
231 }, | 234 }, |
232 | 235 |
233 __proto__: WebInspector.DialogDelegate.prototype | 236 __proto__: WebInspector.DialogDelegate.prototype |
234 } | 237 } |
OLD | NEW |