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