• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2010 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 #include "chrome/browser/extensions/extension_bookmarks_module_constants.h"
6 
7 namespace extension_bookmarks_module_constants {
8 
9 const char kIdKey[] = "id";
10 const char kIndexKey[] = "index";
11 const char kParentIdKey[] = "parentId";
12 const char kOldIndexKey[] = "oldIndex";
13 const char kOldParentIdKey[] = "oldParentId";
14 const char kUrlKey[] = "url";
15 const char kTitleKey[] = "title";
16 const char kChildrenKey[] = "children";
17 const char kChildIdsKey[] = "childIds";
18 const char kRecursiveKey[] = "recursive";
19 const char kDateAddedKey[] = "dateAdded";
20 const char kDateFolderModifiedKey[] = "dateGroupModified";
21 // TODO(arv): Move bookmark manager related constants out of this file.
22 const char kSameProfileKey[] = "sameProfile";
23 const char kElementsKey[] = "elements";
24 
25 const char kNoNodeError[] = "Can't find bookmark for id.";
26 const char kNoParentError[] = "Can't find parent bookmark for id.";
27 const char kFolderNotEmptyError[] =
28     "Can't remove non-empty folder (use recursive to force).";
29 const char kInvalidIdError[] = "Bookmark id is invalid.";
30 const char kInvalidIndexError[] = "Index out of bounds.";
31 const char kInvalidUrlError[] = "Invalid URL.";
32 const char kModifySpecialError[] = "Can't modify the root bookmark folders.";
33 const char kEditBookmarksDisabled[] = "Bookmark editing is disabled.";
34 
35 const char kOnBookmarkCreated[] = "bookmarks.onCreated";
36 const char kOnBookmarkRemoved[] = "bookmarks.onRemoved";
37 const char kOnBookmarkChanged[] = "bookmarks.onChanged";
38 const char kOnBookmarkMoved[] = "bookmarks.onMoved";
39 const char kOnBookmarkChildrenReordered[] = "bookmarks.onChildrenReordered";
40 const char kOnBookmarkImportBegan[] = "bookmarks.onImportBegan";
41 const char kOnBookmarkImportEnded[] = "bookmarks.onImportEnded";
42 // TODO(arv): Move bookmark manager related constants out of this file.
43 const char kOnBookmarkDragEnter[] =
44     "experimental.bookmarkManager.onDragEnter";
45 const char kOnBookmarkDragLeave[] =
46     "experimental.bookmarkManager.onDragLeave";
47 const char kOnBookmarkDrop[] =
48     "experimental.bookmarkManager.onDrop";
49 }  // namespace extension_bookmarks_module_constants
50