summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_bookmarks_module_constants.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 06:05:40 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 06:05:40 +0000
commitf93914857eb403a7aecf9154d14efae2703077e9 (patch)
tree816be10bf84bf1e7dca953092b23975ada90eb59 /chrome/browser/extensions/extension_bookmarks_module_constants.h
parentab49e2e3c7f3fef9ebbf9749e8bf06765f644c21 (diff)
downloadchromium_src-f93914857eb403a7aecf9154d14efae2703077e9.zip
chromium_src-f93914857eb403a7aecf9154d14efae2703077e9.tar.gz
chromium_src-f93914857eb403a7aecf9154d14efae2703077e9.tar.bz2
Separate out the string constants used for extension API function
names, function parameter keys, error messages and event names so that they can be reused when writing extension UI tests. Original review: http://codereview.chromium.org/113771 Review URL: http://codereview.chromium.org/113831 Patch from Joi Sigurdsson <joi.sigurdsson@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_bookmarks_module_constants.h')
-rwxr-xr-xchrome/browser/extensions/extension_bookmarks_module_constants.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_module_constants.h b/chrome/browser/extensions/extension_bookmarks_module_constants.h
new file mode 100755
index 0000000..7c1b5fb
--- /dev/null
+++ b/chrome/browser/extensions/extension_bookmarks_module_constants.h
@@ -0,0 +1,51 @@
+// 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.
+
+// Constants used to for the Bookmarks API.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_CONSTANTS_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_CONSTANTS_H_
+
+namespace extension_bookmarks_module_constants {
+
+// Keys.
+extern const wchar_t kIdKey[];
+extern const wchar_t kIndexKey[];
+extern const wchar_t kParentIdKey[];
+extern const wchar_t kOldIndexKey[];
+extern const wchar_t kOldParentIdKey[];
+extern const wchar_t kUrlKey[];
+extern const wchar_t kTitleKey[];
+extern const wchar_t kChildrenIdsKey[];
+extern const wchar_t kChildrenKey[];
+extern const wchar_t kRecursiveKey[];
+
+// Errors.
+extern const char kNoNodeError[];
+extern const char kNoParentError[];
+extern const char kFolderNotEmptyError[];
+extern const char kInvalidIndexError[];
+extern const char kInvalidUrlError[];
+extern const char kModifySpecialError[];
+
+// Events.
+extern const char kOnBookmarkAdded[];
+extern const char kOnBookmarkRemoved[];
+extern const char kOnBookmarkChanged[];
+extern const char kOnBookmarkMoved[];
+extern const char kOnBookmarkChildrenReordered[];
+
+// Function names.
+extern const char kGetBookmarksFunction[];
+extern const char kGetBookmarkChildrenFunction[];
+extern const char kGetBookmarkTreeFunction[];
+extern const char kSearchBookmarksFunction[];
+extern const char kRemoveBookmarkFunction[];
+extern const char kCreateBookmarkFunction[];
+extern const char kMoveBookmarkFunction[];
+extern const char kSetBookmarkTitleFunction[];
+
+}; // namespace extension_bookmarks_module_constants
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_CONSTANTS_H_