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