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, createElementWithClass("div", "blackb
ox-dialog dialog-contents")); |
14 | |
15 this.element = createElementWithClass("div", "blackbox-dialog dialog-content
s"); | |
16 | 14 |
17 var header = this.element.createChild("div", "header"); | 15 var header = this.element.createChild("div", "header"); |
18 header.createChild("span").textContent = WebInspector.UIString("Framework bl
ackbox patterns"); | 16 header.createChild("span").textContent = WebInspector.UIString("Framework bl
ackbox patterns"); |
19 | 17 |
20 var closeButton = header.createChild("div", "done-button", "dt-close-button"
); | 18 var closeButton = header.createChild("div", "done-button", "dt-close-button"
); |
21 closeButton.gray = true; | 19 closeButton.gray = true; |
22 closeButton.addEventListener("click", this._onDoneClick.bind(this), false); | 20 closeButton.addEventListener("click", this._onDoneClick.bind(this), false); |
23 | 21 |
24 var contents = this.element.createChild("div", "contents"); | 22 var contents = this.element.createChild("div", "contents"); |
25 | 23 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 var nodeName = focusElement && focusElement.nodeName.toLowerCase(); | 230 var nodeName = focusElement && focusElement.nodeName.toLowerCase(); |
233 if (nodeName === "input" || nodeName === "select") { | 231 if (nodeName === "input" || nodeName === "select") { |
234 this.focus(); | 232 this.focus(); |
235 event.consume(true); | 233 event.consume(true); |
236 return; | 234 return; |
237 } | 235 } |
238 }, | 236 }, |
239 | 237 |
240 __proto__: WebInspector.DialogDelegate.prototype | 238 __proto__: WebInspector.DialogDelegate.prototype |
241 } | 239 } |
OLD | NEW |