Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 747347 - sync metro specific widget interfaces with elm. r=jimm

  • Loading branch information...
commit 41f2bcc69662f58a126611f0f9aa979405fa67ff 1 parent 9655c67
@bbondy bbondy authored
Showing with 26 additions and 11 deletions.
  1. +6 −7 widget/MetroUIUtils.idl
  2. +20 −4 widget/nsIWinMetroUtils.idl
View
13 widget/MetroUIUtils.idl
@@ -5,16 +5,10 @@
#include "nsISupports.idl"
-[scriptable, uuid(9D98A42F-ABAA-48a0-BB53-CE09A29E6876)]
+[scriptable, uuid(398fb953-335d-42f1-9e91-e238b56bf4ad)]
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 URI
*/
attribute AString currentPageURI;
@@ -33,5 +27,10 @@ interface nsIMetroUIUtils : nsISupports {
* Determines the text that should be shared
*/
attribute AString shareText;
+
+ /**
+ * Determines the HTML that should be shared
+ */
+ attribute AString shareHTML;
};
View
24 widget/nsIWinMetroUtils.idl
@@ -12,7 +12,7 @@
* implementation of this interface for non-Windows systems, for testing and
* development purposes only.
*/
-[scriptable, uuid(45656788-B111-4317-B054-FFE881A0737E)]
+[scriptable, uuid(b2452440-71c6-41a7-8eda-48004d725001)]
interface nsIWinMetroUtils : nsISupports
{
/* Fullscreen landscape orientation */
@@ -49,6 +49,12 @@ interface nsIWinMetroUtils : nsISupports
*/
void unsnap();
+
+ /**
+ * Show the settings flyout
+ */
+ void showSettingsFlyout();
+
/**
* Launches the specified application with the specified arguments and
* switches to Desktop mode if in metro mode.
@@ -115,8 +121,18 @@ interface nsIWinMetroUtils : nsISupports
*
* @param aChromePanelId panel id invoked via nsIBrowserDOMWindow's
* ShowPanel api. Example: 'prefs-container'
- * @param aLabel Localized string label displayed in the settings
- * flyout panel for this option.
+ * @return a unique identifier that will be passed as "data" in the
+ * "metro-settings-entry-selected" notification when the entry is clicked
+ */
+ unsigned long addSettingsPanelEntry(in AString aLabel);
+
+ /**
+ * Change the value of the "switch primary and secondary buttons" preference.
+ * See the Windows SwapMouseButton API docs for details.
+ * Included here for use in automated tests (see bug 839460).
+ *
+ * @param aSwap true to enable the preference, false to disable it.
+ * @return original value of the preference.
*/
- void addSettingsPanelEntry(in AString aChromePanelId, in AString aLabel);
+ bool swapMouseButton(in bool aSwap);
};
Please sign in to comment.
Something went wrong with that request. Please try again.