Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(811)

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698