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

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 some more 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
« no previous file with comments | « components/bookmarks/browser/bookmark_undo_delegate.h ('k') | components/undo.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // The interface for providing undo support.
15 class BookmarkUndoProvider {
16 public:
17 // Restores the previously removed |node| at |parent| in the specified
18 // |index|.
19 virtual void RestoreRemovedNode(const BookmarkNode* parent,
20 int index,
21 scoped_ptr<BookmarkNode> node) = 0;
22
23 protected:
24 virtual ~BookmarkUndoProvider() {}
25 };
26
27 } // namespace bookmarks
28
29 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_undo_delegate.h ('k') | components/undo.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698