Skip to content

Commit 4d46c27

Browse files
authored
refactor!: Drop deprecated roles (#642)
Removes DescriptionListDetail, DescriptionListTerm, Directory, Portal, and Pre.
1 parent 0fdcebb commit 4d46c27

File tree

8 files changed

+2
-25
lines changed

8 files changed

+2
-25
lines changed

common/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,8 @@ pub enum Role {
129129
ContentInfo,
130130
Definition,
131131
DescriptionList,
132-
DescriptionListDetail,
133-
DescriptionListTerm,
134132
Details,
135133
Dialog,
136-
Directory,
137134
DisclosureTriangle,
138135
Document,
139136
EmbeddedObject,
@@ -167,8 +164,6 @@ pub enum Role {
167164
Navigation,
168165
Note,
169166
PluginObject,
170-
Portal,
171-
Pre,
172167
ProgressIndicator,
173168
RadioGroup,
174169
Region,

consumer/src/node.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,6 @@ impl<'a> Node<'a> {
707707
Role::Article
708708
| Role::Definition
709709
| Role::DescriptionList
710-
| Role::DescriptionListTerm
711-
| Role::Directory
712710
| Role::Document
713711
| Role::GraphicsDocument
714712
| Role::Image
@@ -752,7 +750,6 @@ impl<'a> Node<'a> {
752750
| Role::ListBoxOption
753751
| Role::MenuListOption
754752
| Role::RadioButton
755-
| Role::DescriptionListTerm
756753
| Role::Term
757754
)
758755
}

platforms/android/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ accesskit = { version = "0.21.1", path = "../../common" }
1919
accesskit_consumer = { version = "0.31.0", path = "../../consumer" }
2020
jni = "0.21.1"
2121
log = "0.4.17"
22-

platforms/atspi-common/src/node.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,10 @@ impl NodeWrapper<'_> {
9797
Role::ContentDeletion => AtspiRole::ContentDeletion,
9898
Role::ContentInsertion => AtspiRole::ContentInsertion,
9999
Role::ContentInfo | Role::Footer => AtspiRole::Landmark,
100-
Role::Definition | Role::DescriptionListDetail => AtspiRole::DescriptionValue,
100+
Role::Definition => AtspiRole::DescriptionValue,
101101
Role::DescriptionList => AtspiRole::DescriptionList,
102-
Role::DescriptionListTerm => AtspiRole::DescriptionTerm,
103102
Role::Details => AtspiRole::Panel,
104103
Role::Dialog => AtspiRole::Dialog,
105-
Role::Directory => AtspiRole::List,
106104
Role::DisclosureTriangle => AtspiRole::ToggleButton,
107105
Role::DocCover => AtspiRole::Image,
108106
Role::DocBackLink | Role::DocBiblioRef | Role::DocGlossRef | Role::DocNoteRef => {
@@ -202,8 +200,6 @@ impl NodeWrapper<'_> {
202200
Role::PdfActionableHighlight => AtspiRole::Button,
203201
Role::PdfRoot => AtspiRole::DocumentFrame,
204202
Role::PluginObject => AtspiRole::Embedded,
205-
Role::Portal => AtspiRole::Button,
206-
Role::Pre => AtspiRole::Section,
207203
Role::ProgressIndicator => AtspiRole::ProgressBar,
208204
Role::RadioButton => AtspiRole::RadioButton,
209205
Role::RadioGroup => AtspiRole::Panel,

platforms/macos/src/node.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,8 @@ fn ns_role(node: &Node) -> &'static NSAccessibilityRole {
107107
Role::ContentInfo => NSAccessibilityGroupRole,
108108
Role::Definition => NSAccessibilityGroupRole,
109109
Role::DescriptionList => NSAccessibilityListRole,
110-
Role::DescriptionListDetail => NSAccessibilityGroupRole,
111-
Role::DescriptionListTerm => NSAccessibilityGroupRole,
112110
Role::Details => NSAccessibilityGroupRole,
113111
Role::Dialog => NSAccessibilityGroupRole,
114-
Role::Directory => NSAccessibilityListRole,
115112
Role::DisclosureTriangle => NSAccessibilityButtonRole,
116113
Role::Document => NSAccessibilityGroupRole,
117114
Role::EmbeddedObject => NSAccessibilityGroupRole,
@@ -145,8 +142,6 @@ fn ns_role(node: &Node) -> &'static NSAccessibilityRole {
145142
Role::Navigation => NSAccessibilityGroupRole,
146143
Role::Note => NSAccessibilityGroupRole,
147144
Role::PluginObject => NSAccessibilityGroupRole,
148-
Role::Portal => NSAccessibilityButtonRole,
149-
Role::Pre => NSAccessibilityGroupRole,
150145
Role::ProgressIndicator => NSAccessibilityProgressIndicatorRole,
151146
Role::RadioGroup => NSAccessibilityRadioGroupRole,
152147
Role::Region => NSAccessibilityGroupRole,

platforms/unix/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ tokio-stream = { version = "0.1.14", optional = true }
3636
version = "1.32.0"
3737
optional = true
3838
features = ["macros", "net", "rt", "sync", "time"]
39-

platforms/windows/src/node.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,8 @@ impl NodeWrapper<'_> {
120120
Role::ContentInfo => UIA_GroupControlTypeId,
121121
Role::Definition => UIA_GroupControlTypeId,
122122
Role::DescriptionList => UIA_ListControlTypeId,
123-
Role::DescriptionListDetail => UIA_TextControlTypeId,
124-
Role::DescriptionListTerm => UIA_ListItemControlTypeId,
125123
Role::Details => UIA_GroupControlTypeId,
126124
Role::Dialog => UIA_PaneControlTypeId,
127-
Role::Directory => UIA_ListControlTypeId,
128125
Role::DisclosureTriangle => UIA_ButtonControlTypeId,
129126
Role::Document | Role::Terminal => UIA_DocumentControlTypeId,
130127
Role::EmbeddedObject => UIA_PaneControlTypeId,
@@ -158,8 +155,6 @@ impl NodeWrapper<'_> {
158155
Role::Navigation => UIA_GroupControlTypeId,
159156
Role::Note => UIA_GroupControlTypeId,
160157
Role::PluginObject => UIA_GroupControlTypeId,
161-
Role::Portal => UIA_ButtonControlTypeId,
162-
Role::Pre => UIA_GroupControlTypeId,
163158
Role::ProgressIndicator => UIA_ProgressBarControlTypeId,
164159
Role::RadioGroup => UIA_GroupControlTypeId,
165160
Role::Region => UIA_GroupControlTypeId,

platforms/winit/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ softbuffer = { version = "0.4.0", default-features = false, features = [
4848
"wayland",
4949
"wayland-dlopen",
5050
] }
51+

0 commit comments

Comments
 (0)