| 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 wchar_t kTypeKey[] = L"type"; | 10 const wchar_t kTypeKey[] = L"type"; |
| 11 const wchar_t kNameKey[] = L"name"; | 11 const wchar_t kNameKey[] = L"name"; |
| 12 const wchar_t kDetailsKey[] = L"details"; | 12 const wchar_t kDetailsKey[] = L"details"; |
| 13 const wchar_t kValueKey[] = L"details.value"; | 13 const wchar_t kValueKey[] = L"details.value"; |
| 14 const wchar_t kPasswordKey[] = L"details.isPassword"; | 14 const wchar_t kPasswordKey[] = L"details.isPassword"; |
| 15 const wchar_t kItemCountKey[] = L"details.itemCount"; | 15 const wchar_t kItemCountKey[] = L"details.itemCount"; |
| 16 const wchar_t kItemIndexKey[] = L"details.itemIndex"; | 16 const wchar_t kItemIndexKey[] = L"details.itemIndex"; |
| 17 const wchar_t kSelectionStartKey[] = L"details.selectionStart"; | 17 const wchar_t kSelectionStartKey[] = L"details.selectionStart"; |
| 18 const wchar_t kSelectionEndKey[] = L"details.selectionEnd"; | 18 const wchar_t kSelectionEndKey[] = L"details.selectionEnd"; |
| 19 const wchar_t kCheckedKey[] = L"details.isChecked"; | 19 const wchar_t kCheckedKey[] = L"details.isChecked"; |
| 20 const wchar_t kHasSubmenuKey[] = L"details.hasSubmenu"; |
| 20 | 21 |
| 21 // Events. | 22 // Events. |
| 22 const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened"; | 23 const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened"; |
| 23 const char kOnWindowClosed[] = "experimental.accessibility.onWindowClosed"; | 24 const char kOnWindowClosed[] = "experimental.accessibility.onWindowClosed"; |
| 24 const char kOnControlFocused[] = "experimental.accessibility.onControlFocused"; | 25 const char kOnControlFocused[] = "experimental.accessibility.onControlFocused"; |
| 25 const char kOnControlAction[] = "experimental.accessibility.onControlAction"; | 26 const char kOnControlAction[] = "experimental.accessibility.onControlAction"; |
| 26 const char kOnTextChanged[] = "experimental.accessibility.onTextChanged"; | 27 const char kOnTextChanged[] = "experimental.accessibility.onTextChanged"; |
| 28 const char kOnMenuOpened[] = "experimental.accessibility.onMenuOpened"; |
| 29 const char kOnMenuClosed[] = "experimental.accessibility.onMenuClosed"; |
| 27 | 30 |
| 28 // Types of controls that can receive accessibility events. | 31 // Types of controls that can receive accessibility events. |
| 29 const char kTypeButton[] = "button"; | 32 const char kTypeButton[] = "button"; |
| 30 const char kTypeCheckbox[] = "checkbox"; | 33 const char kTypeCheckbox[] = "checkbox"; |
| 31 const char kTypeComboBox[] = "combobox"; | 34 const char kTypeComboBox[] = "combobox"; |
| 32 const char kTypeLink[] = "link"; | 35 const char kTypeLink[] = "link"; |
| 33 const char kTypeListBox[] = "listbox"; | 36 const char kTypeListBox[] = "listbox"; |
| 37 const char kTypeMenu[] = "menu"; |
| 38 const char kTypeMenuItem[] = "menuitem"; |
| 34 const char kTypeRadioButton[] = "radiobutton"; | 39 const char kTypeRadioButton[] = "radiobutton"; |
| 35 const char kTypeTab[] = "tab"; | 40 const char kTypeTab[] = "tab"; |
| 36 const char kTypeTextBox[] = "textbox"; | 41 const char kTypeTextBox[] = "textbox"; |
| 37 const char kTypeWindow[] = "window"; | 42 const char kTypeWindow[] = "window"; |
| 38 | 43 |
| 39 } // namespace extension_accessibility_api_constants | 44 } // namespace extension_accessibility_api_constants |
| OLD | NEW |