| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.DialogDelegate} | 7 * @extends {WebInspector.DialogDelegate} |
| 8 * @param {function(string)} callback | 8 * @param {function(string)} callback |
| 9 */ | 9 */ |
| 10 WebInspector.AddSourceMapURLDialog = function(callback) | 10 WebInspector.AddSourceMapURLDialog = function(callback) |
| 11 { | 11 { |
| 12 WebInspector.DialogDelegate.call(this); | 12 WebInspector.DialogDelegate.call(this, createElementWithClass("div", "go-to-
line-dialog")); |
| 13 | 13 |
| 14 this.element = createElementWithClass("div", "go-to-line-dialog"); | |
| 15 this.element.createChild("label").textContent = WebInspector.UIString("Sourc
e map URL: "); | 14 this.element.createChild("label").textContent = WebInspector.UIString("Sourc
e map URL: "); |
| 16 | 15 |
| 17 this._input = this.element.createChild("input"); | 16 this._input = this.element.createChild("input"); |
| 18 this._input.setAttribute("type", "text"); | 17 this._input.setAttribute("type", "text"); |
| 19 | 18 |
| 20 this._goButton = this.element.createChild("button"); | 19 this._goButton = this.element.createChild("button"); |
| 21 this._goButton.textContent = WebInspector.UIString("Go"); | 20 this._goButton.textContent = WebInspector.UIString("Go"); |
| 22 this._goButton.addEventListener("click", this._onGoClick.bind(this), false); | 21 this._goButton.addEventListener("click", this._onGoClick.bind(this), false); |
| 23 | 22 |
| 24 this._callback = callback; | 23 this._callback = callback; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 52 this._callback(value); | 51 this._callback(value); |
| 53 }, | 52 }, |
| 54 | 53 |
| 55 onEnter: function() | 54 onEnter: function() |
| 56 { | 55 { |
| 57 this._apply(); | 56 this._apply(); |
| 58 }, | 57 }, |
| 59 | 58 |
| 60 __proto__: WebInspector.DialogDelegate.prototype | 59 __proto__: WebInspector.DialogDelegate.prototype |
| 61 } | 60 } |
| OLD | NEW |