summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_event_names.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_event_names.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_event_names.h')
-rwxr-xr-xchrome/browser/extensions/extension_event_names.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_event_names.h b/chrome/browser/extensions/extension_event_names.h
new file mode 100755
index 0000000..9b9e3f2
--- /dev/null
+++ b/chrome/browser/extensions/extension_event_names.h
@@ -0,0 +1,27 @@
+// 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 for the event names sent to extensions.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_EVENT_NAMES_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_EVENT_NAMES_H_
+
+namespace extension_event_names {
+
+extern const char kOnPageActionExecuted[];
+extern const char kOnTabAttached[];
+extern const char kOnTabCreated[];
+extern const char kOnTabDetached[];
+extern const char kOnTabMoved[];
+extern const char kOnTabRemoved[];
+extern const char kOnTabSelectionChanged[];
+extern const char kOnTabUpdated[];
+extern const char kOnWindowCreated[];
+extern const char kOnWindowFocusedChanged[];
+extern const char kOnWindowRemoved[];
+
+}; // namespace extension_event_names
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_EVENT_NAMES_H_
+