Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: chrome/browser/bookmarks/bookmark_model_observer.h

Issue 155913004: Eliminate Bookmarks dependence to bookmark_undo_utils.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for Android Unit Tests failing Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/bookmarks/bookmark_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_model_observer.h
diff --git a/chrome/browser/bookmarks/bookmark_model_observer.h b/chrome/browser/bookmarks/bookmark_model_observer.h
index d9116e82ea5f3a8039611343353e30d2f0a0bdda..e03e65d1c6605ba4cd28bd1f3e562f3e4692ec3e 100644
--- a/chrome/browser/bookmarks/bookmark_model_observer.h
+++ b/chrome/browser/bookmarks/bookmark_model_observer.h
@@ -99,6 +99,15 @@ class BookmarkModelObserver {
// Invoked when all non-permanent bookmark nodes have been removed.
virtual void BookmarkAllNodesRemoved(BookmarkModel* model) = 0;
+ // Invoked before a set of model changes that is initiated by a single user
+ // action. For example, this is called a single time when pasting from the
+ // clipboard before each pasted bookmark is added to the bookmark model.
+ virtual void GroupedBookmarkChangesBeginning(BookmarkModel* model) {}
+
+ // Invoked after a set of model changes triggered by a single user action has
+ // ended.
+ virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {}
+
protected:
virtual ~BookmarkModelObserver() {}
};
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/bookmarks/bookmark_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698