| 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"children"; | 16 const wchar_t kChildrenKey[] = L"children"; |
| 17 const wchar_t kChildIdsKey[] = L"childIds"; | 17 const wchar_t kChildIdsKey[] = L"childIds"; |
| 18 const wchar_t kRecursiveKey[] = L"recursive"; | 18 const wchar_t kRecursiveKey[] = L"recursive"; |
| 19 const wchar_t kDateAddedKey[] = L"dateAdded"; | 19 const wchar_t kDateAddedKey[] = L"dateAdded"; |
| 20 const wchar_t kDateGroupModifiedKey[] = L"dateGroupModified"; | 20 const wchar_t kDateGroupModifiedKey[] = L"dateGroupModified"; |
| 21 // TODO(arv): Move bookmark manager related constants out of this file. |
| 22 const wchar_t kSameProfileKey[] = L"sameProfile"; |
| 23 const wchar_t kElementsKey[] = L"elements"; |
| 21 | 24 |
| 22 const char kNoNodeError[] = "Can't find bookmark for id."; | 25 const char kNoNodeError[] = "Can't find bookmark for id."; |
| 23 const char kNoParentError[] = "Can't find parent bookmark for id."; | 26 const char kNoParentError[] = "Can't find parent bookmark for id."; |
| 24 const char kFolderNotEmptyError[] = | 27 const char kFolderNotEmptyError[] = |
| 25 "Can't remove non-empty folder (use recursive to force)."; | 28 "Can't remove non-empty folder (use recursive to force)."; |
| 26 const char kInvalidIdError[] = "Bookmark id is invalid."; | 29 const char kInvalidIdError[] = "Bookmark id is invalid."; |
| 27 const char kInvalidIndexError[] = "Index out of bounds."; | 30 const char kInvalidIndexError[] = "Index out of bounds."; |
| 28 const char kInvalidUrlError[] = "Invalid URL."; | 31 const char kInvalidUrlError[] = "Invalid URL."; |
| 29 const char kModifySpecialError[] = "Can't modify the root bookmark folders."; | 32 const char kModifySpecialError[] = "Can't modify the root bookmark folders."; |
| 30 | 33 |
| 31 const char kOnBookmarkCreated[] = "bookmarks.onCreated"; | 34 const char kOnBookmarkCreated[] = "bookmarks.onCreated"; |
| 32 const char kOnBookmarkRemoved[] = "bookmarks.onRemoved"; | 35 const char kOnBookmarkRemoved[] = "bookmarks.onRemoved"; |
| 33 const char kOnBookmarkChanged[] = "bookmarks.onChanged"; | 36 const char kOnBookmarkChanged[] = "bookmarks.onChanged"; |
| 34 const char kOnBookmarkMoved[] = "bookmarks.onMoved"; | 37 const char kOnBookmarkMoved[] = "bookmarks.onMoved"; |
| 35 const char kOnBookmarkChildrenReordered[] = "bookmarks.onChildrenReordered"; | 38 const char kOnBookmarkChildrenReordered[] = "bookmarks.onChildrenReordered"; |
| 39 // TODO(arv): Move bookmark manager related constants out of this file. |
| 36 const char kOnBookmarkImportBegan[] = | 40 const char kOnBookmarkImportBegan[] = |
| 37 "experimental.bookmarkManager.onImportBegan"; | 41 "experimental.bookmarkManager.onImportBegan"; |
| 38 const char kOnBookmarkImportEnded[] = | 42 const char kOnBookmarkImportEnded[] = |
| 39 "experimental.bookmarkManager.onImportEnded"; | 43 "experimental.bookmarkManager.onImportEnded"; |
| 44 const char kOnBookmarkDragEnter[] = |
| 45 "experimental.bookmarkManager.onDragEnter"; |
| 46 const char kOnBookmarkDragLeave[] = |
| 47 "experimental.bookmarkManager.onDragLeave"; |
| 48 const char kOnBookmarkDrop[] = |
| 49 "experimental.bookmarkManager.onDrop"; |
| 40 } // namespace extension_bookmarks_module_constants | 50 } // namespace extension_bookmarks_module_constants |
| OLD | NEW |