| 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); |
| 13 | 13 |
| 14 this.element = document.createElementWithClass("div", "go-to-line-dialog"); | 14 this.element = createElementWithClass("div", "go-to-line-dialog"); |
| 15 this.element.createChild("label").textContent = WebInspector.UIString("Sourc
e map URL: "); | 15 this.element.createChild("label").textContent = WebInspector.UIString("Sourc
e map URL: "); |
| 16 | 16 |
| 17 this._input = this.element.createChild("input"); | 17 this._input = this.element.createChild("input"); |
| 18 this._input.setAttribute("type", "text"); | 18 this._input.setAttribute("type", "text"); |
| 19 | 19 |
| 20 this._goButton = this.element.createChild("button"); | 20 this._goButton = this.element.createChild("button"); |
| 21 this._goButton.textContent = WebInspector.UIString("Go"); | 21 this._goButton.textContent = WebInspector.UIString("Go"); |
| 22 this._goButton.addEventListener("click", this._onGoClick.bind(this), false); | 22 this._goButton.addEventListener("click", this._onGoClick.bind(this), false); |
| 23 | 23 |
| 24 this._callback = callback; | 24 this._callback = callback; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 52 this._callback(value); | 52 this._callback(value); |
| 53 }, | 53 }, |
| 54 | 54 |
| 55 onEnter: function() | 55 onEnter: function() |
| 56 { | 56 { |
| 57 this._apply(); | 57 this._apply(); |
| 58 }, | 58 }, |
| 59 | 59 |
| 60 __proto__: WebInspector.DialogDelegate.prototype | 60 __proto__: WebInspector.DialogDelegate.prototype |
| 61 } | 61 } |
| OLD | NEW |