summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_bookmarks_module_constants.cc
blob: 769fe09a783dbd120e93acb67a58e291fc0c4b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/extensions/extension_bookmarks_module_constants.h"

namespace extension_bookmarks_module_constants {

const wchar_t kIdKey[] = L"id";
const wchar_t kIndexKey[] = L"index";
const wchar_t kParentIdKey[] = L"parentId";
const wchar_t kOldIndexKey[] = L"oldIndex";
const wchar_t kOldParentIdKey[] = L"oldParentId";
const wchar_t kUrlKey[] = L"url";
const wchar_t kTitleKey[] = L"title";
const wchar_t kChildrenKey[] = L"children";
const wchar_t kChildIdsKey[] = L"childIds";
const wchar_t kRecursiveKey[] = L"recursive";
const wchar_t kDateAddedKey[] = L"dateAdded";
const wchar_t kDateGroupModifiedKey[] = L"dateGroupModified";

const char kNoNodeError[] = "Can't find bookmark for id.";
const char kNoParentError[] = "Can't find parent bookmark for id.";
const char kFolderNotEmptyError[] =
    "Can't remove non-empty folder (use recursive to force).";
const char kInvalidIdError[] = "Bookmark id is invalid.";
const char kInvalidIndexError[] = "Index out of bounds.";
const char kInvalidUrlError[] = "Invalid URL.";
const char kModifySpecialError[] = "Can't modify the root bookmark folders.";

const char kOnBookmarkCreated[] = "bookmarks.onCreated";
const char kOnBookmarkRemoved[] = "bookmarks.onRemoved";
const char kOnBookmarkChanged[] = "bookmarks.onChanged";
const char kOnBookmarkMoved[] = "bookmarks.onMoved";
const char kOnBookmarkChildrenReordered[] = "bookmarks.onChildrenReordered";

const char kGetBookmarksFunction[] = "bookmarks.get";
const char kGetBookmarkChildrenFunction[] = "bookmarks.getChildren";
const char kGetBookmarkTreeFunction[] = "bookmarks.getTree";
const char kSearchBookmarksFunction[] = "bookmarks.search";
const char kRemoveBookmarkFunction[] = "bookmarks.remove";
const char kRemoveBookmarkTreeFunction[] = "bookmarks.removeTree";
const char kCreateBookmarkFunction[] = "bookmarks.create";
const char kMoveBookmarkFunction[] = "bookmarks.move";
const char kUpdateBookmarkFunction[] = "bookmarks.update";

}  // namespace extension_bookmarks_module_constants