mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
More window/dialog cleanup for commonly used dialogs
This commit is contained in:
parent
767f48bb69
commit
17f4365fbc
@ -464,19 +464,39 @@ let Utils = {
|
||||
let win = Svc.WinWatcher;
|
||||
if (type == "Dialog")
|
||||
win = win.activeWindow;
|
||||
win["open" + type].apply(win, this.slice(arguments, 2));
|
||||
},
|
||||
|
||||
openWindow: function Utils_openWindow(name, uri, options, args) {
|
||||
this._openWin(name, "Window", null, "chrome://weave/content/" + uri,
|
||||
"", options || "centerscreen,chrome,dialog,resizable=yes", args);
|
||||
win["open" + type].apply(win, Utils.slice(arguments, 2));
|
||||
},
|
||||
|
||||
openDialog: function Utils_openDialog(name, uri, options, args) {
|
||||
this._openWin(name, "Dialog", "chrome://weave/content/" + uri, "",
|
||||
Utils._openWin(name, "Dialog", "chrome://weave/content/" + uri, "",
|
||||
options || "centerscreen,chrome,dialog,modal,resizable=yes", args);
|
||||
},
|
||||
|
||||
openLog: function Utils_openLog() {
|
||||
Utils.openWindow("Log", "log.xul");
|
||||
},
|
||||
|
||||
openLogin: function Utils_openLogin() {
|
||||
Utils.openDialog("Login", "login.xul");
|
||||
},
|
||||
|
||||
openShare: function Utils_openShare() {
|
||||
Utils.openDialog("Share", "share.xul");
|
||||
},
|
||||
|
||||
openStatus: function Utils_openStatus() {
|
||||
Utils.openDialog("Status", "status.xul");
|
||||
},
|
||||
|
||||
openWindow: function Utils_openWindow(name, uri, options, args) {
|
||||
Utils._openWin(name, "Window", null, "chrome://weave/content/" + uri,
|
||||
"", options || "centerscreen,chrome,dialog,resizable=yes", args);
|
||||
},
|
||||
|
||||
openWizard: function Utils_openWizard() {
|
||||
Utils.openDialog("Wizard", "wizard.xul");
|
||||
},
|
||||
|
||||
// assumes an nsIConverterInputStream
|
||||
readStream: function Weave_readStream(is) {
|
||||
let ret = "", str = {};
|
||||
|
Loading…
Reference in New Issue
Block a user