summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_accessibility_api_constants.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 01:18:56 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 01:18:56 +0000
commit5cbe1e21980f42927d7d1c11cc860131be266e7e (patch)
tree3b52e15044336cb89e3004214b4714e6148e5ea9 /chrome/browser/extensions/extension_accessibility_api_constants.cc
parent7a12518454d36fb4ac79431f56106b38cd2482ab (diff)
downloadchromium_src-5cbe1e21980f42927d7d1c11cc860131be266e7e.zip
chromium_src-5cbe1e21980f42927d7d1c11cc860131be266e7e.tar.gz
chromium_src-5cbe1e21980f42927d7d1c11cc860131be266e7e.tar.bz2
Add an accessibility API for events raised outside of the web content.
BUG=none TEST=none patch by Dominic Mazzoni <dmazzoni [at] google> review url: http://codereview.chromium.org/402099/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_accessibility_api_constants.cc')
-rw-r--r--chrome/browser/extensions/extension_accessibility_api_constants.cc38
1 files changed, 38 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_accessibility_api_constants.cc b/chrome/browser/extensions/extension_accessibility_api_constants.cc
new file mode 100644
index 0000000..72d6138
--- /dev/null
+++ b/chrome/browser/extensions/extension_accessibility_api_constants.cc
@@ -0,0 +1,38 @@
+// Copyright (c) 2010 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_accessibility_api_constants.h"
+
+namespace extension_accessibility_api_constants {
+
+// String keys for AccessibilityObject properties.
+const wchar_t kTypeKey[] = L"type";
+const wchar_t kNameKey[] = L"name";
+const wchar_t kDetailsKey[] = L"details";
+const wchar_t kValueKey[] = L"details.value";
+const wchar_t kPasswordKey[] = L"details.isPassword";
+const wchar_t kItemCountKey[] = L"details.itemCount";
+const wchar_t kItemIndexKey[] = L"details.itemIndex";
+const wchar_t kSelectionStartKey[] = L"details.selectionStart";
+const wchar_t kSelectionEndKey[] = L"details.selectionEnd";
+const wchar_t kCheckedKey[] = L"details.isChecked";
+
+// Events.
+const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened";
+const char kOnWindowClosed[] = "experimental.accessibility.onWindowClosed";
+const char kOnControlFocused[] = "experimental.accessibility.onControlFocused";
+const char kOnControlAction[] = "experimental.accessibility.onControlAction";
+const char kOnTextChanged[] = "experimental.accessibility.onTextChanged";
+
+// Types of controls that can receive accessibility events.
+extern const char kTypeButton[] = "button";
+extern const char kTypeCheckbox[] = "checkbox";
+extern const char kTypeComboBox[] = "combobox";
+extern const char kTypeLink[] = "link";
+extern const char kTypeRadioButton[] = "radiobutton";
+extern const char kTypeTab[] = "tab";
+extern const char kTypeTextBox[] = "textbox";
+extern const char kTypeWindow[] = "window";
+
+} // namespace extension_accessibility_api_constants