1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h"
7 namespace extension_accessibility_api_constants
{
9 // String keys for AccessibilityObject properties.
10 const char kTypeKey
[] = "type";
11 const char kNameKey
[] = "name";
12 const char kContextKey
[] = "context";
13 const char kValueKey
[] = "details.value";
14 const char kChildrenCountKey
[] = "details.childrenCount";
15 const char kPasswordKey
[] = "details.isPassword";
16 const char kItemCountKey
[] = "details.itemCount";
17 const char kItemDepthKey
[] = "details.itemDepth";
18 const char kItemIndexKey
[] = "details.itemIndex";
19 const char kItemExpandedKey
[] = "details.isItemExpanded";
20 const char kSelectionStartKey
[] = "details.selectionStart";
21 const char kSelectionEndKey
[] = "details.selectionEnd";
22 const char kCheckedKey
[] = "details.isChecked";
23 const char kHasSubmenuKey
[] = "details.hasSubmenu";
24 const char kMessageKey
[] = "message";
25 const char kStringValueKey
[] = "details.stringValue";
26 const char kBoundsKey
[] = "bounds";
28 // Types of controls that can receive accessibility events.
29 const char kTypeAlert
[] = "alert";
30 const char kTypeButton
[] = "button";
31 const char kTypeCheckbox
[] = "checkbox";
32 const char kTypeComboBox
[] = "combobox";
33 const char kTypeLink
[] = "link";
34 const char kTypeListBox
[] = "listbox";
35 const char kTypeMenu
[] = "menu";
36 const char kTypeMenuItem
[] = "menuitem";
37 const char kTypeRadioButton
[] = "radiobutton";
38 const char kTypeRow
[] = "row";
39 const char kTypeSlider
[] = "slider";
40 const char kTypeStaticText
[] = "statictext";
41 const char kTypeTab
[] = "tab";
42 const char kTypeTable
[] = "table";
43 const char kTypeTextBox
[] = "textbox";
44 const char kTypeTree
[] = "tree";
45 const char kTypeTreeItem
[] = "treeitem";
46 const char kTypeWindow
[] = "window";
49 const char kLeft
[] = "left";
50 const char kTop
[] = "top";
51 const char kWidth
[] = "width";
52 const char kHeight
[] = "height";
55 const char kErrorNotSupported
[] = "This API is not supported on this platform.";
57 } // namespace extension_accessibility_api_constants