forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccessibility_types.h
58 lines (53 loc) · 1.76 KB
/
accessibility_types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_
#define VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_
////////////////////////////////////////////////////////////////////////////////
//
// AccessibilityTypes
//
// Provides enumerations used to preserve platform-independence in accessibility
// functions used in various Views, both in Browser\Views and Views.
//
////////////////////////////////////////////////////////////////////////////////
class AccessibilityTypes {
public:
// This defines an enumeration of the supported accessibility roles in our
// Views (e.g. used in View::GetAccessibleRole). Any interface using roles
// must provide a conversion to its own roles (see e.g.
// ViewAccessibility::get_accRole and ViewAccessibility::MSAARole).
enum Role {
ROLE_APPLICATION,
ROLE_BUTTONDROPDOWN,
ROLE_BUTTONMENU,
ROLE_CHECKBUTTON,
ROLE_CLIENT,
ROLE_COMBOBOX,
ROLE_GRAPHIC,
ROLE_GROUPING,
ROLE_LINK,
ROLE_PAGETAB,
ROLE_PAGETABLIST,
ROLE_PANE,
ROLE_PUSHBUTTON,
ROLE_SEPARATOR,
ROLE_TEXT,
ROLE_TITLEBAR,
ROLE_TOOLBAR,
ROLE_WINDOW
};
// This defines an enumeration of the supported accessibility roles in our
// Views (e.g. used in View::GetAccessibleState). Any interface using roles
// must provide a conversion to its own roles (see e.g.
// ViewAccessibility::get_accState and ViewAccessibility::MSAAState).
enum State {
STATE_HASPOPUP,
STATE_READONLY
};
private:
// Do not instantiate this class.
AccessibilityTypes() {}
~AccessibilityTypes() {}
};
#endif // VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_