diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-26 06:05:40 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-26 06:05:40 +0000 |
commit | f93914857eb403a7aecf9154d14efae2703077e9 (patch) | |
tree | 816be10bf84bf1e7dca953092b23975ada90eb59 /chrome/browser/extensions/extension_event_names.cc | |
parent | ab49e2e3c7f3fef9ebbf9749e8bf06765f644c21 (diff) | |
download | chromium_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.cc')
-rwxr-xr-x | chrome/browser/extensions/extension_event_names.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_event_names.cc b/chrome/browser/extensions/extension_event_names.cc new file mode 100755 index 0000000..f4fd6e7 --- /dev/null +++ b/chrome/browser/extensions/extension_event_names.cc @@ -0,0 +1,22 @@ +// 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_event_names.h" + +namespace extension_event_names { + +const char kOnPageActionExecuted[] = "page-action-executed"; +const char kOnTabAttached[] = "tab-attached"; +const char kOnTabCreated[] = "tab-created"; +const char kOnTabDetached[] = "tab-detached"; +const char kOnTabMoved[] = "tab-moved"; +const char kOnTabRemoved[] = "tab-removed"; +const char kOnTabSelectionChanged[] = "tab-selection-changed"; +const char kOnTabUpdated[] = "tab-updated"; +const char kOnWindowCreated[] = "window-created"; +const char kOnWindowFocusedChanged[] = "window-focus-changed"; +const char kOnWindowRemoved[] = "window-removed"; + +} // namespace extension_event_names + |