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

Side by Side Diff: chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h

Issue 119233004: Add multi-level undo/redo functions to Bookmark Manager Private API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UTF16ToUTF8 moved to base namespace Created 6 years, 11 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 | « no previous file | chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_ PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_ PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_ PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_ PRIVATE_API_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/bookmarks/bookmark_node_data.h" 9 #include "chrome/browser/bookmarks/bookmark_node_data.h"
10 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" 10 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h"
11 #include "chrome/browser/extensions/chrome_extension_function.h" 11 #include "chrome/browser/extensions/chrome_extension_function.h"
12 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 12 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
13 #include "chrome/browser/undo/bookmark_undo_service.h"
14 #include "chrome/browser/undo/bookmark_undo_service_factory.h"
13 15
14 struct BookmarkNodeData; 16 struct BookmarkNodeData;
15 class Profile; 17 class Profile;
16 18
17 namespace content { 19 namespace content {
18 class WebContents; 20 class WebContents;
19 } 21 }
20 22
21 namespace extensions { 23 namespace extensions {
22 24
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.removeTrees", 252 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.removeTrees",
251 BOOKMARKMANAGERPRIVATE_REMOVETREES) 253 BOOKMARKMANAGERPRIVATE_REMOVETREES)
252 254
253 protected: 255 protected:
254 virtual ~BookmarkManagerPrivateRemoveTreesFunction() {} 256 virtual ~BookmarkManagerPrivateRemoveTreesFunction() {}
255 257
256 // ExtensionFunction: 258 // ExtensionFunction:
257 virtual bool RunImpl() OVERRIDE; 259 virtual bool RunImpl() OVERRIDE;
258 }; 260 };
259 261
262 class BookmarkManagerPrivateUndoFunction
263 : public extensions::BookmarksFunction {
264 public:
265 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.undo",
266 BOOKMARKMANAGERPRIVATE_UNDO)
267
268 protected:
269 virtual ~BookmarkManagerPrivateUndoFunction() {}
270
271 // ExtensionFunction:
272 virtual bool RunImpl() OVERRIDE;
273 };
274
275 class BookmarkManagerPrivateRedoFunction
276 : public extensions::BookmarksFunction {
277 public:
278 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.redo",
279 BOOKMARKMANAGERPRIVATE_REDO)
280
281 protected:
282 virtual ~BookmarkManagerPrivateRedoFunction() {}
283
284 // ExtensionFunction:
285 virtual bool RunImpl() OVERRIDE;
286 };
287
288 class BookmarkManagerPrivateGetUndoInfoFunction
289 : public extensions::BookmarksFunction {
290 public:
291 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.getUndoInfo",
292 BOOKMARKMANAGERPRIVATE_UNDOINFO)
293
294 protected:
295 virtual ~BookmarkManagerPrivateGetUndoInfoFunction() {}
296
297 // ExtensionFunction:
298 virtual bool RunImpl() OVERRIDE;
299 };
300
301 class BookmarkManagerPrivateGetRedoInfoFunction
302 : public extensions::BookmarksFunction {
303 public:
304 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.getRedoInfo",
305 BOOKMARKMANAGERPRIVATE_REDOINFO)
306
307 protected:
308 virtual ~BookmarkManagerPrivateGetRedoInfoFunction() {}
309
310 // ExtensionFunction:
311 virtual bool RunImpl() OVERRIDE;
312 };
313
260 } // namespace extensions 314 } // namespace extensions
261 315
262 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAG ER_PRIVATE_API_H_ 316 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAG ER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698