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

Side by Side Diff: components/bookmarks/browser/bookmark_undo_provider.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_PROVIDER_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_PROVIDER_H_
7
8 #include "base/memory/scoped_ptr.h"
9
10 namespace bookmarks {
11
12 class BookmarkNode;
13
14 class BookmarkUndoProvider {
15 public:
16 // Restores the previously removed |node| at |parent| in the specified
17 // |index|.
18 virtual void RestoreRemovedNode(const BookmarkNode* parent,
19 int index,
20 scoped_ptr<BookmarkNode> node) = 0;
21
22 protected:
23 virtual ~BookmarkUndoProvider() {}
24 };
25
sky 2015/10/08 15:20:01 nit: only one newline.
jianli 2015/10/08 23:37:41 Done.
26
27 } // namespace bookmarks
28
29 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698