B2G/gecko/browser/components/places/src/PlacesUIUtils.jsm
/**
   * Shows the bookmark dialog corresponding to the specified info.
   *
   * @param aInfo
   *        Describes the item to be edited/added in the dialog.
   *        See documentation at the top of bookmarkProperties.js
   * @param aWindow
   *        Owner window for the new dialog.
   * @param aResizable [optional]
   *        Whether the dialog is allowed to resize.  Do not pass this for new
   *        callers since it's deprecated.  It'll be removed in future releases.
   *
   * @see documentation at the top of bookmarkProperties.js
   * @return true if any transaction has been performed, false otherwise.
   */
Shows the bookmark dialog corresponding to the specified info.
@param aInfo
Describes the item to be edited/added in the dialog.
See documentation at the top of bookmarkProperties.js
@param aWindow
Owner window for the new dialog.
@param aResizable [optional]
Whether the dialog is allowed to resize.  Do not pass this for new
callers since it's deprecated.  It'll be removed in future releases.

@see documentation at the top of bookmarkProperties.js
@return true if any transaction has been performed, false otherwise.
Shows the bookmark dialog corresponding to the specified info . @param aInfo Describes the item to be edited / added in the dialog . See documentation at the top of bookmarkProperties . js @param aWindow Owner window for the new dialog . @param aResizable [ optional ] Whether the dialog is allowed to resize . Do not pass this for new callers since it ' s deprecated . It ' ll be removed in future releases . @see documentation at the top of bookmarkProperties . js @return true if any transaction has been performed false otherwise .
function PUIU_showBookmarkDialog(aInfo, aParentWindow, aResizable) {
    let hasFolderPicker = !("hiddenRows" in aInfo) ||
                          aInfo.hiddenRows.indexOf("folderPicker") == -1;
    let resizable = aResizable !== undefined ? aResizable : hasFolderPicker;
    let dialogURL = resizable ?
                    "chrome://browser/content/places/bookmarkProperties2.xul" :
                    "chrome://browser/content/places/bookmarkProperties.xul";
    let features =
      "centerscreen,chrome,modal,resizable=" + (resizable ? "yes" : "no");
    aParentWindow.openDialog(dialogURL, "",  features, aInfo);
    return ("performed" in aInfo && aInfo.performed);
  }
function PUIU_showBookmarkDialog ( aInfo , aParentWindow , aResizable ) { let hasFolderPicker = ! ( "hiddenRows" in aInfo ) || aInfo . hiddenRows . indexOf ( "folderPicker" ) == - 1 ; let resizable = aResizable !== undefined ? aResizable : hasFolderPicker ; let dialogURL = resizable ? "chrome://browser/content/places/bookmarkProperties2.xul" : "chrome://browser/content/places/bookmarkProperties.xul" ; let features = "centerscreen,chrome,modal,resizable=" + ( resizable ? "yes" : "no" ) ; aParentWindow . openDialog ( dialogURL , "" , features , aInfo ) ; return ( "performed" in aInfo && aInfo . performed ) ; }
Shows the bookmark dialog corresponding to the specified info.
Shows the bookmark dialog corresponding to the specified info .
// Preserve size attributes differently based on the fact the dialog has // a folder picker or not.  If the picker is visible, the dialog should // be resizable since it may not show enough content for the folders // hierarchy. // Use a different chrome url, since this allows to persist different sizes, // based on resizability of the dialog.