1 // Copyright (c) 2011 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 CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_CONSTANTS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_CONSTANTS_H_ 7 8 // Constants used for the Bookmarks API. 9 10 namespace extensions { 11 namespace bookmark_api_constants { 12 13 // Keys. 14 extern const char kIdKey[]; 15 extern const char kIndexKey[]; 16 extern const char kParentIdKey[]; 17 extern const char kOldIndexKey[]; 18 extern const char kOldParentIdKey[]; 19 extern const char kUrlKey[]; 20 extern const char kTitleKey[]; 21 extern const char kChildrenKey[]; 22 extern const char kChildIdsKey[]; 23 extern const char kRecursiveKey[]; 24 extern const char kDateAddedKey[]; 25 extern const char kDateFolderModifiedKey[]; 26 27 // Errors. 28 extern const char kNoNodeError[]; 29 extern const char kNoParentError[]; 30 extern const char kFolderNotEmptyError[]; 31 extern const char kInvalidIdError[]; 32 extern const char kInvalidIndexError[]; 33 extern const char kInvalidUrlError[]; 34 extern const char kModifySpecialError[]; 35 extern const char kEditBookmarksDisabled[]; 36 37 // Events. 38 extern const char kOnBookmarkCreated[]; 39 extern const char kOnBookmarkRemoved[]; 40 extern const char kOnBookmarkChanged[]; 41 extern const char kOnBookmarkMoved[]; 42 extern const char kOnBookmarkChildrenReordered[]; 43 extern const char kOnBookmarkImportBegan[]; 44 extern const char kOnBookmarkImportEnded[]; 45 46 } // namespace bookmark_api_constants 47 } // namespace extensions 48 49 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_CONSTANTS_H_ 50