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// Constants used to for the Bookmarks API. 6 7#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_CONSTANTS_H_ 8#define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_CONSTANTS_H_ 9#pragma once 10 11namespace extension_bookmarks_module_constants { 12 13// Keys. 14extern const char kIdKey[]; 15extern const char kIndexKey[]; 16extern const char kParentIdKey[]; 17extern const char kOldIndexKey[]; 18extern const char kOldParentIdKey[]; 19extern const char kUrlKey[]; 20extern const char kTitleKey[]; 21extern const char kChildrenKey[]; 22extern const char kChildIdsKey[]; 23extern const char kRecursiveKey[]; 24extern const char kDateAddedKey[]; 25extern const char kDateFolderModifiedKey[]; 26// TODO(arv): Move bookmark manager related constants out of this file. 27extern const char kSameProfileKey[]; 28extern const char kElementsKey[]; 29 30// Errors. 31extern const char kNoNodeError[]; 32extern const char kNoParentError[]; 33extern const char kFolderNotEmptyError[]; 34extern const char kInvalidIdError[]; 35extern const char kInvalidIndexError[]; 36extern const char kInvalidUrlError[]; 37extern const char kModifySpecialError[]; 38extern const char kEditBookmarksDisabled[]; 39 40// Events. 41extern const char kOnBookmarkCreated[]; 42extern const char kOnBookmarkRemoved[]; 43extern const char kOnBookmarkChanged[]; 44extern const char kOnBookmarkMoved[]; 45extern const char kOnBookmarkChildrenReordered[]; 46extern const char kOnBookmarkImportBegan[]; 47extern const char kOnBookmarkImportEnded[]; 48// TODO(arv): Move bookmark manager related constants out of this file. 49extern const char kOnBookmarkDragEnter[]; 50extern const char kOnBookmarkDragLeave[]; 51extern const char kOnBookmarkDrop[]; 52 53}; // namespace extension_bookmarks_module_constants 54 55#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_CONSTANTS_H_ 56