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