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

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

Issue 2702523003: [DevTools] Continue GlassPane refactoring. (Closed)
Patch Set: element Created 3 years, 10 months 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 6b683ad0bd626685c71c94c9503606ec64338c20..47ef0408127099ec0e59b353e2dfdc1f1d4aae72 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/AddSourceMapURLDialog.js
@@ -32,15 +32,15 @@ Sources.AddSourceMapURLDialog = class extends UI.HBox {
static show(callback) {
var dialog = new UI.Dialog();
var addSourceMapURLDialog = new Sources.AddSourceMapURLDialog(done);
- addSourceMapURLDialog.show(dialog.element);
- dialog.setWrapsContent(true);
- dialog.show();
+ addSourceMapURLDialog.show(dialog.contentElement);
+ dialog.setSizeBehavior(UI.GlassPane.SizeBehavior.MeasureContent);
+ dialog.showDialog();
/**
* @param {string} value
*/
function done(value) {
- dialog.detach();
+ dialog.hideDialog();
callback(value);
}
}

Powered by Google App Engine
This is Rietveld 408576698