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

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

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | 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 = createElementWithClass("div", "blackbox-dialog dialog-content s");
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"); 25 var contentScriptsSection = contents.createChild("div", "blackbox-content-sc ripts");
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 var nodeName = focusElement && focusElement.nodeName.toLowerCase(); 228 var nodeName = focusElement && focusElement.nodeName.toLowerCase();
229 if (nodeName === "input" || nodeName === "select") { 229 if (nodeName === "input" || nodeName === "select") {
230 this.focus(); 230 this.focus();
231 event.consume(true); 231 event.consume(true);
232 return; 232 return;
233 } 233 }
234 }, 234 },
235 235
236 __proto__: WebInspector.DialogDelegate.prototype 236 __proto__: WebInspector.DialogDelegate.prototype
237 } 237 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/settings/EditFileSystemDialog.js ('k') | Source/devtools/front_end/settings/SettingsScreen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698