| Index: third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js b/third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
|
| index 0120fff0667c053a6f4bdf8d2c9259dbbcfa0a07..36cb16c664d52c31e8ed1381debc1615a7a9d930 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
|
| @@ -4,21 +4,21 @@
|
| /**
|
| * @unrestricted
|
| */
|
| -WebInspector.AddSourceMapURLDialog = class extends WebInspector.HBox {
|
| +Sources.AddSourceMapURLDialog = class extends UI.HBox {
|
| /**
|
| * @param {function(string)} callback
|
| */
|
| constructor(callback) {
|
| super(true);
|
| this.registerRequiredCSS('ui_lazy/dialog.css');
|
| - this.contentElement.createChild('label').textContent = WebInspector.UIString('Source map URL: ');
|
| + this.contentElement.createChild('label').textContent = Common.UIString('Source map URL: ');
|
|
|
| this._input = this.contentElement.createChild('input');
|
| this._input.setAttribute('type', 'text');
|
| this._input.addEventListener('keydown', this._onKeyDown.bind(this), false);
|
|
|
| var addButton = this.contentElement.createChild('button');
|
| - addButton.textContent = WebInspector.UIString('Add');
|
| + addButton.textContent = Common.UIString('Add');
|
| addButton.addEventListener('click', this._apply.bind(this), false);
|
|
|
| this.setDefaultFocusedElement(this._input);
|
| @@ -30,8 +30,8 @@ WebInspector.AddSourceMapURLDialog = class extends WebInspector.HBox {
|
| * @param {function(string)} callback
|
| */
|
| static show(callback) {
|
| - var dialog = new WebInspector.Dialog();
|
| - var addSourceMapURLDialog = new WebInspector.AddSourceMapURLDialog(done);
|
| + var dialog = new UI.Dialog();
|
| + var addSourceMapURLDialog = new Sources.AddSourceMapURLDialog(done);
|
| addSourceMapURLDialog.show(dialog.element);
|
| dialog.setWrapsContent(true);
|
| dialog.show();
|
| @@ -53,7 +53,7 @@ WebInspector.AddSourceMapURLDialog = class extends WebInspector.HBox {
|
| * @param {!Event} event
|
| */
|
| _onKeyDown(event) {
|
| - if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) {
|
| + if (event.keyCode === UI.KeyboardShortcut.Keys.Enter.code) {
|
| event.preventDefault();
|
| this._apply();
|
| }
|
|
|