OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/extension_accessibility_api_constants.h" | 5 #include "chrome/browser/extensions/extension_accessibility_api_constants.h" |
6 | 6 |
7 namespace extension_accessibility_api_constants { | 7 namespace extension_accessibility_api_constants { |
8 | 8 |
9 // String keys for AccessibilityObject properties. | 9 // String keys for AccessibilityObject properties. |
10 const char kTypeKey[] = "type"; | 10 const char kTypeKey[] = "type"; |
11 const char kNameKey[] = "name"; | 11 const char kNameKey[] = "name"; |
12 const char kDetailsKey[] = "details"; | 12 const char kDetailsKey[] = "details"; |
13 const char kValueKey[] = "details.value"; | 13 const char kValueKey[] = "details.value"; |
14 const char kPasswordKey[] = "details.isPassword"; | 14 const char kPasswordKey[] = "details.isPassword"; |
15 const char kItemCountKey[] = "details.itemCount"; | 15 const char kItemCountKey[] = "details.itemCount"; |
16 const char kItemIndexKey[] = "details.itemIndex"; | 16 const char kItemIndexKey[] = "details.itemIndex"; |
17 const char kSelectionStartKey[] = "details.selectionStart"; | 17 const char kSelectionStartKey[] = "details.selectionStart"; |
18 const char kSelectionEndKey[] = "details.selectionEnd"; | 18 const char kSelectionEndKey[] = "details.selectionEnd"; |
19 const char kCheckedKey[] = "details.isChecked"; | 19 const char kCheckedKey[] = "details.isChecked"; |
20 const char kHasSubmenuKey[] = "details.hasSubmenu"; | 20 const char kHasSubmenuKey[] = "details.hasSubmenu"; |
21 const char kVolumeKey[] = "details.volume"; | |
dmazzoni
2011/08/29 22:24:06
I think this should just be "volume", and same wit
yoshiki
2011/08/30 06:43:30
Done.
| |
22 const char kIsVolumeMutedKey[] = "details.isVolumeMuted"; | |
21 | 23 |
22 // Events. | 24 // Events. |
23 const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened"; | 25 const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened"; |
24 const char kOnWindowClosed[] = "experimental.accessibility.onWindowClosed"; | 26 const char kOnWindowClosed[] = "experimental.accessibility.onWindowClosed"; |
25 const char kOnControlFocused[] = "experimental.accessibility.onControlFocused"; | 27 const char kOnControlFocused[] = "experimental.accessibility.onControlFocused"; |
26 const char kOnControlAction[] = "experimental.accessibility.onControlAction"; | 28 const char kOnControlAction[] = "experimental.accessibility.onControlAction"; |
27 const char kOnTextChanged[] = "experimental.accessibility.onTextChanged"; | 29 const char kOnTextChanged[] = "experimental.accessibility.onTextChanged"; |
28 const char kOnMenuOpened[] = "experimental.accessibility.onMenuOpened"; | 30 const char kOnMenuOpened[] = "experimental.accessibility.onMenuOpened"; |
29 const char kOnMenuClosed[] = "experimental.accessibility.onMenuClosed"; | 31 const char kOnMenuClosed[] = "experimental.accessibility.onMenuClosed"; |
32 const char kOnVolumeChanged[] = "experimental.accessibility.onVolumeChanged"; | |
30 | 33 |
31 // Types of controls that can receive accessibility events. | 34 // Types of controls that can receive accessibility events. |
32 const char kTypeButton[] = "button"; | 35 const char kTypeButton[] = "button"; |
33 const char kTypeCheckbox[] = "checkbox"; | 36 const char kTypeCheckbox[] = "checkbox"; |
34 const char kTypeComboBox[] = "combobox"; | 37 const char kTypeComboBox[] = "combobox"; |
35 const char kTypeLink[] = "link"; | 38 const char kTypeLink[] = "link"; |
36 const char kTypeListBox[] = "listbox"; | 39 const char kTypeListBox[] = "listbox"; |
37 const char kTypeMenu[] = "menu"; | 40 const char kTypeMenu[] = "menu"; |
38 const char kTypeMenuItem[] = "menuitem"; | 41 const char kTypeMenuItem[] = "menuitem"; |
39 const char kTypeRadioButton[] = "radiobutton"; | 42 const char kTypeRadioButton[] = "radiobutton"; |
40 const char kTypeTab[] = "tab"; | 43 const char kTypeTab[] = "tab"; |
41 const char kTypeTextBox[] = "textbox"; | 44 const char kTypeTextBox[] = "textbox"; |
45 const char kTypeVolume[] = "volume"; | |
dmazzoni
2011/08/29 22:24:06
Delete this now that AccessibilityVolumeInfo is no
yoshiki
2011/08/30 06:43:30
Done.
| |
42 const char kTypeWindow[] = "window"; | 46 const char kTypeWindow[] = "window"; |
43 | 47 |
44 } // namespace extension_accessibility_api_constants | 48 } // namespace extension_accessibility_api_constants |
OLD | NEW |