Bug 817677 - Sharing in Firefox Metro should only share selected content when selection is made. r=jimm
authorBrian R. Bondy <netzen@gmail.com>
Fri, 21 Dec 2012 11:09:02 -0500
changeset 122231 cf15d495a7fd2f3ee0111cfd47cb7fee7f41d902
parent 122230 60d13dd4291259b8c0eb26f2f65249e4985c4a78
child 122232 f2e4c3f694dd045dc94917684129a2809fff9a2e
push idunknown
push userunknown
push dateunknown
reviewersjimm
bugs817677
milestone20.0a1
Bug 817677 - Sharing in Firefox Metro should only share selected content when selection is made. r=jimm
widget/MetroUIUtils.idl
--- a/widget/MetroUIUtils.idl
+++ b/widget/MetroUIUtils.idl
@@ -1,24 +1,37 @@
 /* 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)]
+[scriptable, uuid(9D98A42F-ABAA-48a0-BB53-CE09A29E6876)]
 
 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
+   * Obtains the current page URI
+  */
+  attribute AString currentPageURI;
+
+  /**
+   * Obtains the current page title
   */
-  void getCurrentPageInfo(out AString aURI, out AString aTitle);
+  attribute AString currentPageTitle;
+
+  /**
+   * Determines if the browser has selected content
+  */
+  attribute boolean hasSelectedContent;
+
+  /**
+   * Determines the text that should be shared
+  */
+  attribute AString shareText;
 };