Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "base/basictypes.h" | |
| 11 | |
| 10 class GURL; | 12 class GURL; |
| 11 | 13 |
| 12 namespace bookmarks { | 14 namespace bookmarks { |
| 13 | 15 |
| 14 class BookmarkModel; | 16 class BookmarkModel; |
| 15 class BookmarkNode; | 17 class BookmarkNode; |
| 16 | 18 |
| 17 // Observer for the BookmarkModel. | 19 // Observer for the BookmarkModel. |
| 18 class BookmarkModelObserver { | 20 class BookmarkModelObserver { |
| 19 public: | 21 public: |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 | 129 |
| 128 // Invoked before a set of model changes that is initiated by a single user | 130 // Invoked before a set of model changes that is initiated by a single user |
| 129 // action. For example, this is called a single time when pasting from the | 131 // action. For example, this is called a single time when pasting from the |
| 130 // clipboard before each pasted bookmark is added to the bookmark model. | 132 // clipboard before each pasted bookmark is added to the bookmark model. |
| 131 virtual void GroupedBookmarkChangesBeginning(BookmarkModel* model) {} | 133 virtual void GroupedBookmarkChangesBeginning(BookmarkModel* model) {} |
| 132 | 134 |
| 133 // Invoked after a set of model changes triggered by a single user action has | 135 // Invoked after a set of model changes triggered by a single user action has |
| 134 // ended. | 136 // ended. |
| 135 virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {} | 137 virtual void GroupedBookmarkChangesEnded(BookmarkModel* model) {} |
| 136 | 138 |
| 139 // Invoked when a bookmark id has been renumbered when an undo operation | |
| 140 // occurs. | |
| 141 virtual void BookmarkNodeRenumbered( | |
| 142 BookmarkModel* model, int64 old_id, int64 new_id) {} | |
|
sky
2015/09/25 15:54:44
int64_t on these. And this description is a bit co
jianli
2015/09/25 20:29:24
Changed to use int64_t and updated the comment.
T
sky
2015/09/25 20:38:57
I think bookmark undo should be changed such that
| |
| 143 | |
| 137 protected: | 144 protected: |
| 138 virtual ~BookmarkModelObserver() {} | 145 virtual ~BookmarkModelObserver() {} |
| 139 }; | 146 }; |
| 140 | 147 |
| 141 } // namespace bookmarks | 148 } // namespace bookmarks |
| 142 | 149 |
| 143 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_OBSERVER_H_ | 150 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_OBSERVER_H_ |
| OLD | NEW |