| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/extensions/extension_bookmarks_module_constants.h" | 5 #include "chrome/browser/extensions/extension_bookmarks_module_constants.h" |
| 6 | 6 |
| 7 namespace extension_bookmarks_module_constants { | 7 namespace extension_bookmarks_module_constants { |
| 8 | 8 |
| 9 const wchar_t kIdKey[] = L"id"; | 9 const wchar_t kIdKey[] = L"id"; |
| 10 const wchar_t kIndexKey[] = L"index"; | 10 const wchar_t kIndexKey[] = L"index"; |
| 11 const wchar_t kParentIdKey[] = L"parentId"; | 11 const wchar_t kParentIdKey[] = L"parentId"; |
| 12 const wchar_t kOldIndexKey[] = L"oldIndex"; | 12 const wchar_t kOldIndexKey[] = L"oldIndex"; |
| 13 const wchar_t kOldParentIdKey[] = L"oldParentId"; | 13 const wchar_t kOldParentIdKey[] = L"oldParentId"; |
| 14 const wchar_t kUrlKey[] = L"url"; | 14 const wchar_t kUrlKey[] = L"url"; |
| 15 const wchar_t kTitleKey[] = L"title"; | 15 const wchar_t kTitleKey[] = L"title"; |
| 16 const wchar_t kChildrenKey[] = L"childrenIds"; | 16 const wchar_t kChildrenKey[] = L"children"; |
| 17 const wchar_t kRecursiveKey[] = L"recursive"; | 17 const wchar_t kRecursiveKey[] = L"recursive"; |
| 18 const wchar_t kDateAddedKey[] = L"dateAdded"; |
| 19 const wchar_t kDateGroupModifiedKey[] = L"dateGroupModified"; |
| 18 | 20 |
| 19 const char kNoNodeError[] = "Can't find bookmark for id."; | 21 const char kNoNodeError[] = "Can't find bookmark for id."; |
| 20 const char kNoParentError[] = "Can't find parent bookmark for id."; | 22 const char kNoParentError[] = "Can't find parent bookmark for id."; |
| 21 const char kFolderNotEmptyError[] = | 23 const char kFolderNotEmptyError[] = |
| 22 "Can't remove non-empty folder (use recursive to force)."; | 24 "Can't remove non-empty folder (use recursive to force)."; |
| 23 const char kInvalidIndexError[] = "Index out of bounds."; | 25 const char kInvalidIndexError[] = "Index out of bounds."; |
| 24 const char kInvalidUrlError[] = "Invalid URL."; | 26 const char kInvalidUrlError[] = "Invalid URL."; |
| 25 const char kModifySpecialError[] = "Can't modify the root bookmark folders."; | 27 const char kModifySpecialError[] = "Can't modify the root bookmark folders."; |
| 26 | 28 |
| 27 const char kOnBookmarkAdded[] = "bookmark-added"; | 29 const char kOnBookmarkAdded[] = "bookmark-added"; |
| 28 const char kOnBookmarkRemoved[] = "bookmark-removed"; | 30 const char kOnBookmarkRemoved[] = "bookmark-removed"; |
| 29 const char kOnBookmarkChanged[] = "bookmark-changed"; | 31 const char kOnBookmarkChanged[] = "bookmark-changed"; |
| 30 const char kOnBookmarkMoved[] = "bookmark-moved"; | 32 const char kOnBookmarkMoved[] = "bookmark-moved"; |
| 31 const char kOnBookmarkChildrenReordered[] = "bookmark-children-reordered"; | 33 const char kOnBookmarkChildrenReordered[] = "bookmark-children-reordered"; |
| 32 | 34 |
| 33 const char kGetBookmarksFunction[] = "GetBookmarks"; | 35 const char kGetBookmarksFunction[] = "GetBookmarks"; |
| 34 const char kGetBookmarkChildrenFunction[] = "GetBookmarkChildren"; | 36 const char kGetBookmarkChildrenFunction[] = "GetBookmarkChildren"; |
| 35 const char kGetBookmarkTreeFunction[] = "GetBookmarkTree"; | 37 const char kGetBookmarkTreeFunction[] = "GetBookmarkTree"; |
| 36 const char kSearchBookmarksFunction[] = "SearchBookmarks"; | 38 const char kSearchBookmarksFunction[] = "SearchBookmarks"; |
| 37 const char kRemoveBookmarkFunction[] = "RemoveBookmark"; | 39 const char kRemoveBookmarkFunction[] = "RemoveBookmark"; |
| 38 const char kCreateBookmarkFunction[] = "CreateBookmark"; | 40 const char kCreateBookmarkFunction[] = "CreateBookmark"; |
| 39 const char kMoveBookmarkFunction[] = "MoveBookmark"; | 41 const char kMoveBookmarkFunction[] = "MoveBookmark"; |
| 40 const char kSetBookmarkTitleFunction[] = "SetBookmarkTitle"; | 42 const char kSetBookmarkTitleFunction[] = "SetBookmarkTitle"; |
| 41 | 43 |
| 42 } // namespace extension_bookmarks_module_constants | 44 } // namespace extension_bookmarks_module_constants |
| OLD | NEW |