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

Side by Side Diff: components/bookmarks/browser/bookmark_model_observer.h

Issue 568923004: Don't set metainfo ID for enhanced bookmarks extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_OBSERVER_H_ 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_OBSERVER_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_OBSERVER_H_ 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_OBSERVER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 class BookmarkModel; 10 class BookmarkModel;
(...skipping 11 matching lines...) Expand all
22 // Invoked from the destructor of the BookmarkModel. 22 // Invoked from the destructor of the BookmarkModel.
23 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) {} 23 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) {}
24 24
25 // Invoked when a node has moved. 25 // Invoked when a node has moved.
26 virtual void BookmarkNodeMoved(BookmarkModel* model, 26 virtual void BookmarkNodeMoved(BookmarkModel* model,
27 const BookmarkNode* old_parent, 27 const BookmarkNode* old_parent,
28 int old_index, 28 int old_index,
29 const BookmarkNode* new_parent, 29 const BookmarkNode* new_parent,
30 int new_index) = 0; 30 int new_index) = 0;
31 31
32 // Invoked prior to adding a bookmark node, and in particular, prior to adding
33 // it to the parent. This function can be used to alter the contents of the
34 // node before BookmarkNodeAdded listeners know about it.
35 virtual void OnWillAddBookmarkNode(BookmarkModel* model,
36 BookmarkNode* node) {}
37
38 // Invoked when a node has been added. 32 // Invoked when a node has been added.
39 virtual void BookmarkNodeAdded(BookmarkModel* model, 33 virtual void BookmarkNodeAdded(BookmarkModel* model,
40 const BookmarkNode* parent, 34 const BookmarkNode* parent,
41 int index) = 0; 35 int index) = 0;
42 36
43 // Invoked before a node is removed. 37 // Invoked before a node is removed.
44 // |parent| the parent of the node that will be removed. 38 // |parent| the parent of the node that will be removed.
45 // |old_index| the index of the node about to be removed in |parent|. 39 // |old_index| the index of the node about to be removed in |parent|.
46 // |node| is the node to be removed. 40 // |node| is the node to be removed.
47 virtual void OnWillRemoveBookmarks(BookmarkModel* model, 41 virtual void OnWillRemoveBookmarks(BookmarkModel* model,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 118
125 // Invoked after a set of model changes triggered by a single user action has 119 // Invoked after a set of model changes triggered by a single user action has
126 // ended. 120 // ended.
127 virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {} 121 virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {}
128 122
129 protected: 123 protected:
130 virtual ~BookmarkModelObserver() {} 124 virtual ~BookmarkModelObserver() {}
131 }; 125 };
132 126
133 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_OBSERVER_H_ 127 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_model.cc ('k') | components/bookmarks/browser/bookmark_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698