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

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

Issue 548323002: DevTools: Blackbox content scripts - frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added a test Created 6 years, 3 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 | Annotate | Revision Log
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.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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/DebuggerModel.js ('k') | Source/devtools/front_end/settings/SettingsScreen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698