Home | History | Annotate | Download | only in bookmarks
      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 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h"
      6 
      7 namespace extensions {
      8 namespace bookmark_api_constants {
      9 
     10 const char kIdKey[] = "id";
     11 const char kIndexKey[] = "index";
     12 const char kParentIdKey[] = "parentId";
     13 const char kOldIndexKey[] = "oldIndex";
     14 const char kOldParentIdKey[] = "oldParentId";
     15 const char kUrlKey[] = "url";
     16 const char kTitleKey[] = "title";
     17 const char kChildrenKey[] = "children";
     18 const char kChildIdsKey[] = "childIds";
     19 const char kRecursiveKey[] = "recursive";
     20 const char kDateAddedKey[] = "dateAdded";
     21 const char kDateFolderModifiedKey[] = "dateGroupModified";
     22 
     23 const char kNoNodeError[] = "Can't find bookmark for id.";
     24 const char kNoParentError[] = "Can't find parent bookmark for id.";
     25 const char kFolderNotEmptyError[] =
     26     "Can't remove non-empty folder (use recursive to force).";
     27 const char kInvalidIdError[] = "Bookmark id is invalid.";
     28 const char kInvalidIndexError[] = "Index out of bounds.";
     29 const char kInvalidUrlError[] = "Invalid URL.";
     30 const char kModifySpecialError[] = "Can't modify the root bookmark folders.";
     31 const char kEditBookmarksDisabled[] = "Bookmark editing is disabled.";
     32 
     33 const char kOnBookmarkCreated[] = "bookmarks.onCreated";
     34 const char kOnBookmarkRemoved[] = "bookmarks.onRemoved";
     35 const char kOnBookmarkChanged[] = "bookmarks.onChanged";
     36 const char kOnBookmarkMoved[] = "bookmarks.onMoved";
     37 const char kOnBookmarkChildrenReordered[] = "bookmarks.onChildrenReordered";
     38 const char kOnBookmarkImportBegan[] = "bookmarks.onImportBegan";
     39 const char kOnBookmarkImportEnded[] = "bookmarks.onImportEnded";
     40 
     41 }  // namespace bookmark_api_constants
     42 }  // namespace extensions
     43