blob: f0e2d7fe5170df0dfb025048a42b8fceecc1b53a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_
#define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_
#include "base/memory/scoped_ptr.h"
namespace bookmarks {
class BookmarkModel;
class BookmarkNode;
class BookmarkUndoProvider;
// Delegate to handle bookmark change events in order to support undo when
// requested.
class BookmarkUndoDelegate {
public:
virtual ~BookmarkUndoDelegate() {}
// Sets the provider that will do the undo work.
virtual void SetUndoProvider(BookmarkUndoProvider* provider) = 0;
// Called when |node| was removed from |parent| at position |index|.
virtual void OnBookmarkNodeRemoved(BookmarkModel* model,
const BookmarkNode* parent,
int index,
scoped_ptr<BookmarkNode> node) = 0;
};
} // namespace bookmarks
#endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UNDO_DELEGATE_H_
|