зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
de704da924
Коммит
0c47f8316e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче