Add replaceItem / onItemReplaced to change a bookmark URI (bug 317802). r=ben. npob

Original committer: bryner%brianryner.com
Original revision: 1.6
Original date: 2005/11/29 01:22:57
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 17:25:44 +00:00
Родитель de704da924
Коммит 0c47f8316e
1 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -120,6 +120,15 @@ interface nsINavBookmarkObserver : nsISupports
*/
void onItemChanged(in nsIURI bookmark, in ACString property);
/**
* Notify this observer that a bookmark has been replaced.
*
* @param folder The folder in which the bookmark was replaced
* @param item The item which was replaced
* @param newItem The new item which replaced item
*/
void onItemReplaced(in PRInt64 folder, in nsIURI item, in nsIURI newItem);
/**
* Notify this observer that a bookmark folder has been added.
* @param folder The id of the folder that was added.
@ -196,6 +205,14 @@ interface nsINavBookmarksService : nsISupports
*/
void removeItem(in PRInt64 folder, in nsIURI child);
/**
* Replace an item with a different item.
* @param folder The folder which contains the item to replace
* @param item The item which should be replaced
* @param newItem The new item
*/
void replaceItem(in PRInt64 folder, in nsIURI item, in nsIURI newItem);
/**
* Creates a new child folder and inserts it under the given parent.
* @param parent The id of the parent folder