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 #ifndef UI_BASE_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_
6 #define UI_BASE_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_
8 #include "base/basictypes.h"
12 ////////////////////////////////////////////////////////////////////////////////
16 // Provides enumerations used to preserve platform-independence in
17 // accessibility functions.
19 ////////////////////////////////////////////////////////////////////////////////
20 class AccessibilityTypes
{
23 // This defines states of the supported accessibility roles in our
24 // Views (e.g. used in View::GetAccessibleState). Any interface using states
25 // must provide a conversion to its own states (see e.g.
26 // NativeViewAccessibilityWin::get_accState).
29 STATE_CHECKED
= 1 << 0,
30 STATE_COLLAPSED
= 1 << 1,
31 STATE_DEFAULT
= 1 << 2,
32 STATE_EDITABLE
= 1 << 3,
33 STATE_EXPANDED
= 1 << 4,
34 STATE_FOCUSED
= 1 << 5,
35 STATE_HASPOPUP
= 1 << 6,
36 STATE_HOTTRACKED
= 1 << 7,
37 STATE_INVISIBLE
= 1 << 8,
38 STATE_LINKED
= 1 << 9,
39 STATE_OFFSCREEN
= 1 << 10,
40 STATE_PRESSED
= 1 << 11,
41 STATE_PROTECTED
= 1 << 12,
42 STATE_READONLY
= 1 << 13,
43 STATE_SELECTED
= 1 << 14,
44 STATE_UNAVAILABLE
= 1 << 15
47 // This defines an enumeration of the supported accessibility roles in our
48 // Views (e.g. used in View::GetAccessibleRole). Any interface using roles
49 // must provide a conversion to its own roles (see e.g.
50 // NativeViewAccessibilityWin::get_accRole).
85 // This defines an enumeration of the supported accessibility events in our
86 // Views (e.g. used in View::NotifyAccessibilityEvent). Any interface using
87 // events must provide a conversion to its own events (see e.g.
88 // ViewAccessibility::MSAAEvent).
98 EVENT_SELECTION_CHANGED
,
103 // Do not instantiate this class.
104 AccessibilityTypes() {}
105 ~AccessibilityTypes() {}
110 #endif // UI_BASE_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_