OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_ | |
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 | |
10 namespace bookmarks { | |
11 | |
12 class BookmarkModel; | |
13 class BookmarkNode; | |
14 class BookmarkUndoProvider; | |
15 | |
16 class BookmarkUndoDelegate { | |
sky
2015/10/08 15:20:01
Add a description.
jianli
2015/10/08 23:37:40
Done.
| |
17 public: | |
18 // Called when |node| was deleted from |parent| at position |index|. The | |
sky
2015/10/08 15:20:00
deleted->rmeoted
jianli
2015/10/08 23:37:40
Done.
| |
19 // delegate takes the ownership of the deleted node. | |
sky
2015/10/08 15:20:01
The second sentence is no longer needed as node is
jianli
2015/10/08 23:37:40
Done.
| |
20 virtual void OnBookmarkNodeDeleted(BookmarkModel* model, | |
sky
2015/10/08 15:20:00
OnBookmarkNodeRemoved.
jianli
2015/10/08 23:37:40
Done.
| |
21 BookmarkUndoProvider* provider, | |
sky
2015/10/08 15:20:00
Rather than supply the provider on event call how
jianli
2015/10/08 23:37:40
Done.
| |
22 const BookmarkNode* parent, | |
23 int index, | |
24 scoped_ptr<BookmarkNode> node) = 0; | |
25 | |
26 protected: | |
27 virtual ~BookmarkUndoDelegate() {} | |
28 }; | |
29 | |
30 | |
31 } // namespace bookmarks | |
32 | |
33 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_ | |
OLD | NEW |