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

Unified Diff: chrome/common/extensions/api/bookmark_manager_private.json

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_function_histogram_value.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/bookmark_manager_private.json
diff --git a/chrome/common/extensions/api/bookmark_manager_private.json b/chrome/common/extensions/api/bookmark_manager_private.json
index 992c63f14164c601de91cf787de8e6524f2c4818..e36990dd24bfcf7553b15dd984c2df1f0e126ab9 100644
--- a/chrome/common/extensions/api/bookmark_manager_private.json
+++ b/chrome/common/extensions/api/bookmark_manager_private.json
@@ -302,6 +302,64 @@
"parameters": []
}
]
+ },
+ {
+ "name": "undo",
+ "type": "function",
+ "description": "Performs an undo of the last change to the bookmark model",
+ "nodoc": "true",
+ "parameters": []
+ },
+ {
+ "name": "redo",
+ "type": "function",
+ "description": "Performs a redo of last undone change to the bookmark model",
+ "nodoc": "true",
+ "parameters": []
+ },
+ {
+ "name": "getUndoInfo",
+ "type": "function",
+ "description": "Gets the information for the undo if available",
+ "nodoc": "true",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "result",
+ "type": "object",
+ "properties": {
+ "enabled" : {"type": "boolean", "description": "Whether there is an action to undo"},
+ "label" : {"type": "string", "description": "The i18n label to use for the undo action"}
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "getRedoInfo",
+ "type": "function",
+ "description": "Gets the information for the redo if available",
+ "nodoc": "true",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "result",
+ "type": "object",
+ "properties": {
+ "enabled" : {"type": "boolean", "description": "Whether there is an action to redo"},
+ "label" : {"type": "string", "description": "The i18n label to use for the redo action"}
+ }
+ }
+ ]
+ }
+ ]
}
],
"events": [
« no previous file with comments | « chrome/browser/extensions/extension_function_histogram_value.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698