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

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

Issue 1379983002: Supporting undoing bookmark deletion without creating new ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 5 years, 2 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698