зеркало из https://github.com/mozilla/gecko-dev.git
add a bookmarks context menu item for refreshing a microsummary; bug=341555; r=mconnor; a=mconnor for 1.8 branch
This commit is contained in:
Родитель
da623c877d
Коммит
e30874168a
|
@ -250,4 +250,24 @@ interface nsIMicrosummaryService : nsISupports
|
|||
*/
|
||||
boolean isMicrosummary(in nsISupports bookmarkID,
|
||||
in nsIMicrosummary microsummary);
|
||||
|
||||
/**
|
||||
* Refresh a microsummary, updating its value in the datastore and UI.
|
||||
* If this method can refresh the microsummary instantly, it will.
|
||||
* Otherwise, it'll asynchronously download the necessary information
|
||||
* (the generator and/or page) before refreshing the microsummary.
|
||||
*
|
||||
* Callers should check the "content" property of the returned microsummary
|
||||
* object to distinguish between sync and async refreshes. If its value
|
||||
* is "null", then it's an async refresh, and the caller should register
|
||||
* itself as an nsIMicrosummaryObserver via nsIMicrosummary.addObserver()
|
||||
* to find out when the refresh completes.
|
||||
*
|
||||
* @param bookmarkID
|
||||
* the bookmark whose microsummary is being refreshed
|
||||
*
|
||||
* @returns the microsummary being refreshed
|
||||
*
|
||||
*/
|
||||
nsIMicrosummary refreshMicrosummary(in nsISupports bookmarkID);
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче