diff options
Diffstat (limited to 'components/bookmarks/browser/bookmark_model_observer.h')
-rw-r--r-- | components/bookmarks/browser/bookmark_model_observer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/bookmarks/browser/bookmark_model_observer.h b/components/bookmarks/browser/bookmark_model_observer.h index 21d0c34..d5c20a1 100644 --- a/components/bookmarks/browser/bookmark_model_observer.h +++ b/components/bookmarks/browser/bookmark_model_observer.h @@ -29,6 +29,12 @@ class BookmarkModelObserver { const BookmarkNode* new_parent, int new_index) = 0; + // Invoked prior to adding a bookmark node, and in particular, prior to adding + // it to the parent. This function can be used to alter the contents of the + // node before BookmarkNodeAdded listeners know about it. + virtual void OnWillAddBookmarkNode(BookmarkModel* model, + BookmarkNode* node) {} + // Invoked when a node has been added. virtual void BookmarkNodeAdded(BookmarkModel* model, const BookmarkNode* parent, |