Chromium Code Reviews| 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"; | |
| 22 const char kIsVolumeMuteKey[] = "details.isVolumeMute"; | |
|
dmazzoni
2011/08/24 14:49:02
Should be: isVolumeMuted
yoshiki
2011/08/29 09:16:16
Done.
| |
| 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 kOnVolumeUp[] = "experimental.accessibility.onVolumeUp"; | |
| 33 const char kOnVolumeDown[] = "experimental.accessibility.onVolumeDown"; | |
| 34 const char kOnVolumeMute[] = "experimental.accessibility.onVolumeMute"; | |
|
dmazzoni
2011/08/24 14:49:02
This one is correct as-is: onVolumeMute
yoshiki
2011/08/29 09:16:16
onVolume(Up|Down|Mute) was replaced with onVolumeC
| |
| 30 | 35 |
| 31 // Types of controls that can receive accessibility events. | 36 // Types of controls that can receive accessibility events. |
| 32 const char kTypeButton[] = "button"; | 37 const char kTypeButton[] = "button"; |
| 33 const char kTypeCheckbox[] = "checkbox"; | 38 const char kTypeCheckbox[] = "checkbox"; |
| 34 const char kTypeComboBox[] = "combobox"; | 39 const char kTypeComboBox[] = "combobox"; |
| 35 const char kTypeLink[] = "link"; | 40 const char kTypeLink[] = "link"; |
| 36 const char kTypeListBox[] = "listbox"; | 41 const char kTypeListBox[] = "listbox"; |
| 37 const char kTypeMenu[] = "menu"; | 42 const char kTypeMenu[] = "menu"; |
| 38 const char kTypeMenuItem[] = "menuitem"; | 43 const char kTypeMenuItem[] = "menuitem"; |
| 39 const char kTypeRadioButton[] = "radiobutton"; | 44 const char kTypeRadioButton[] = "radiobutton"; |
| 40 const char kTypeTab[] = "tab"; | 45 const char kTypeTab[] = "tab"; |
| 41 const char kTypeTextBox[] = "textbox"; | 46 const char kTypeTextBox[] = "textbox"; |
| 42 const char kTypeWindow[] = "window"; | 47 const char kTypeWindow[] = "window"; |
| 48 const char kTypeVolume[] = "volume"; | |
|
Zachary Kuznia
2011/08/25 06:14:07
nit: volume should come before window.
yoshiki
2011/08/29 09:16:16
Done.
| |
| 43 | 49 |
| 44 } // namespace extension_accessibility_api_constants | 50 } // namespace extension_accessibility_api_constants |
| OLD | NEW |