Bug 815172 - Provide widget the ability to call into PanelUI and get other browser info. r=jimm
authorBrian R. Bondy <netzen@gmail.com>
Tue, 27 Nov 2012 16:24:13 -0500
changeset 119860 f5e2eba79e1b28591e414801f5a39015f0e8b484
parent 119859 d6130f6eeaca718ec8727af3a260273e20190f26
child 119861 82e61145a1dce2148e93c7e85ee193c38504ce48
push id3129
push userakeybl@mozilla.com
push dateMon, 07 Jan 2013 22:54:45 +0000
treeherdermozilla-aurora@090bc89ff6b4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs815172
milestone20.0a1
Bug 815172 - Provide widget the ability to call into PanelUI and get other browser info. r=jimm
widget/Makefile.in
widget/MetroUIUtils.idl
--- a/widget/Makefile.in
+++ b/widget/Makefile.in
@@ -137,17 +137,19 @@ XPIDLSRCS	+= nsIPrintSettingsWin.idl \
 		nsITaskbarProgress.idl \
 		nsITaskbarOverlayIconController.idl \
 		nsIJumpListBuilder.idl \
 		nsIJumpListItem.idl \
 		$(NULL)
 endif
 
 ifdef MOZ_METRO
-XPIDLSRCS += nsIWinMetroUtils.idl
+XPIDLSRCS += nsIWinMetroUtils.idl \
+		MetroUIUtils.idl \
+		$(NULL)
 endif
 
 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
 XPIDLSRCS +=	nsIMacDockSupport.idl \
 		nsIStandaloneNativeMenu.idl \
 		nsIMacWebAppUtils.idl \
 		$(NULL)
 endif
new file mode 100644
--- /dev/null
+++ b/widget/MetroUIUtils.idl
@@ -0,0 +1,24 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+
+#include "nsISupports.idl"
+
+[scriptable, uuid(aef0cd6f-27cc-40a4-90dc-764c0aabeb75)]
+
+interface nsIMetroUIUtils : nsISupports {
+  /**
+   * Loads the specified panel in the browser.
+   * @ param aPanelId The identifier of the pane to load
+  */
+  void showPanel(in AString aPanelId);
+
+  /**
+   * Obtains the current page information
+   * @param aURI The current page URI
+   * @param aTitle The current page title
+  */
+  void getCurrentPageInfo(out AString aURI, out AString aTitle);
+};
+