From f93914857eb403a7aecf9154d14efae2703077e9 Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Tue, 26 May 2009 06:05:40 +0000 Subject: 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 . git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16867 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_event_names.cc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 chrome/browser/extensions/extension_event_names.cc (limited to 'chrome/browser/extensions/extension_event_names.cc') 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 + -- cgit v1.1