Home | History | Annotate | Download | only in extensions
      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
      3 // found in the LICENSE file.
      4 
      5 #include "chrome/browser/extensions/extension_accessibility_api_constants.h"
      6 
      7 namespace extension_accessibility_api_constants {
      8 
      9 // String keys for AccessibilityObject properties.
     10 const char kTypeKey[] = "type";
     11 const char kNameKey[] = "name";
     12 const char kDetailsKey[] = "details";
     13 const char kValueKey[] = "details.value";
     14 const char kPasswordKey[] = "details.isPassword";
     15 const char kItemCountKey[] = "details.itemCount";
     16 const char kItemIndexKey[] = "details.itemIndex";
     17 const char kSelectionStartKey[] = "details.selectionStart";
     18 const char kSelectionEndKey[] = "details.selectionEnd";
     19 const char kCheckedKey[] = "details.isChecked";
     20 const char kHasSubmenuKey[] = "details.hasSubmenu";
     21 
     22 // Events.
     23 const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened";
     24 const char kOnWindowClosed[] = "experimental.accessibility.onWindowClosed";
     25 const char kOnControlFocused[] = "experimental.accessibility.onControlFocused";
     26 const char kOnControlAction[] = "experimental.accessibility.onControlAction";
     27 const char kOnTextChanged[] = "experimental.accessibility.onTextChanged";
     28 const char kOnMenuOpened[] = "experimental.accessibility.onMenuOpened";
     29 const char kOnMenuClosed[] = "experimental.accessibility.onMenuClosed";
     30 
     31 // Types of controls that can receive accessibility events.
     32 const char kTypeButton[] = "button";
     33 const char kTypeCheckbox[] = "checkbox";
     34 const char kTypeComboBox[] = "combobox";
     35 const char kTypeLink[] = "link";
     36 const char kTypeListBox[] = "listbox";
     37 const char kTypeMenu[] = "menu";
     38 const char kTypeMenuItem[] = "menuitem";
     39 const char kTypeRadioButton[] = "radiobutton";
     40 const char kTypeTab[] = "tab";
     41 const char kTypeTextBox[] = "textbox";
     42 const char kTypeWindow[] = "window";
     43 
     44 }  // namespace extension_accessibility_api_constants
     45