OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |