зеркало из https://github.com/mozilla/pjs.git
Bug 392213 nsINavBookmarksService.idl comments need clarification for extension developers (r=thunder)
This commit is contained in:
Родитель
c1607fab6a
Коммит
33b90f6c69
|
@ -202,8 +202,8 @@ interface nsINavBookmarksService : nsISupports
|
||||||
const unsigned short TYPE_DYNAMIC_CONTAINER = 4;
|
const unsigned short TYPE_DYNAMIC_CONTAINER = 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inserts a child bookmark into the given folder. If this item already exists in
|
* Inserts a child bookmark into the given folder.
|
||||||
* the given folder, it will be moved to the new position.
|
*
|
||||||
* @param aParentFolder
|
* @param aParentFolder
|
||||||
* The id of the parent folder
|
* The id of the parent folder
|
||||||
* @param aURI
|
* @param aURI
|
||||||
|
@ -347,7 +347,8 @@ interface nsINavBookmarksService : nsISupports
|
||||||
* profiles) to be the same item.
|
* profiles) to be the same item.
|
||||||
* @param aItemId
|
* @param aItemId
|
||||||
* The id of the item to set the GUID of
|
* The id of the item to set the GUID of
|
||||||
* @returns The GUID string
|
* @param aGUID
|
||||||
|
* The GUID string
|
||||||
*/
|
*/
|
||||||
void setItemGUID(in long long aItemId, in AString aGUID);
|
void setItemGUID(in long long aItemId, in AString aGUID);
|
||||||
|
|
||||||
|
@ -413,6 +414,9 @@ interface nsINavBookmarksService : nsISupports
|
||||||
* already exist, or change the index of other items accordingly, otherwise
|
* already exist, or change the index of other items accordingly, otherwise
|
||||||
* the indices will become corrupted.
|
* the indices will become corrupted.
|
||||||
*
|
*
|
||||||
|
* WARNING: This is API is intended for scenarios such as folder sorting,
|
||||||
|
* where the caller manages the indices of *all* items in the folder.
|
||||||
|
*
|
||||||
* @param aItemId The id of the item to modify
|
* @param aItemId The id of the item to modify
|
||||||
* @param aNewIndex The new index
|
* @param aNewIndex The new index
|
||||||
*/
|
*/
|
||||||
|
@ -438,15 +442,21 @@ interface nsINavBookmarksService : nsISupports
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether a folder is marked as read-only.
|
* Checks whether a folder is marked as read-only.
|
||||||
* If this is set to true, UI should not allow the user to add, remove,
|
* If this is set to true, UI will not allow the user to add, remove,
|
||||||
* or reorder children in this folder. The default for all folders is false.
|
* or reorder children in this folder. The default for all folders is false.
|
||||||
|
* Note: This does not restrict API calls, only UI actions.
|
||||||
|
*
|
||||||
* @param aFolder
|
* @param aFolder
|
||||||
* the item-id of the folder.
|
* the item-id of the folder.
|
||||||
*/
|
*/
|
||||||
boolean getFolderReadonly(in long long aFolder);
|
boolean getFolderReadonly(in long long aFolder);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets or unsets the readonly flag from a folder
|
* Sets or unsets the readonly flag from a folder.
|
||||||
|
* If this is set to true, UI will not allow the user to add, remove,
|
||||||
|
* or reorder children in this folder. The default for all folders is false.
|
||||||
|
* Note: This does not restrict API calls, only UI actions.
|
||||||
|
*
|
||||||
* @param aFolder
|
* @param aFolder
|
||||||
* the item-id of the folder.
|
* the item-id of the folder.
|
||||||
* @param aReadOnly
|
* @param aReadOnly
|
||||||
|
|
Загрузка…
Ссылка в новой задаче