@@ -167,6 +167,11 @@ interface nsIPlatformGlue : nsISupports
* Use the appropriate platform-specific mechanism to indicate that the window requires attention.
*/
void getAttention();
+
+ /**
+ * Restore minimized window
+ */
+ void restoreWindow();
/**
* Display the preferences dialog.
@@ -407,6 +407,12 @@ PlatformGlue.prototype = {
this._chromeWindow.getAttention();
},
+ restoreWindow : function restoreWindow() {
+ var evt = this._window.document.createEvent("Events");
+ evt.initEvent("DOMActivate", true, false);
+ this._chromeWindow.dispatchEvent(evt);
+ },
showPreferences : function showPreferences(paneToShow)
{
this._chromeWindow.openDialog("chrome://webrunner/content/preferences/preferences.xul", "preferences", "chrome,titlebar,toolbar,centerscreen,dialog", paneToShow);