Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: ui/accessibility/ax_enums.idl

Issue 1308153012: Uses isEditable and isRichlyEditable to determine which attributes to expose on Mac and how to repr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h 5 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h
6 // until the Chromium and Blink trees are merged. 6 // until the Chromium and Blink trees are merged.
7 [camel_case_enum_to_string=true] namespace ui { 7 [camel_case_enum_to_string=true] namespace ui {
8 8
9 // For new entries to the following three enums, also add to 9 // For new entries to the following three enums, also add to
10 // chrome/common/extensions/api/automation.idl. 10 // chrome/common/extensions/api/automation.idl.
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 tree_item, 184 tree_item,
185 tree, 185 tree,
186 unknown, 186 unknown,
187 tooltip, 187 tooltip,
188 web_area, 188 web_area,
189 web_view, 189 web_view,
190 window 190 window
191 }; 191 };
192 192
193 // TODO(dmazzoni): switch content/ to use AX_STATE_DISABLED instead of 193 // TODO(dmazzoni): switch content/ to use AX_STATE_DISABLED instead of
194 // !AX_STATE_ENABLED, and AX_STATE_EDITABLE instead of !AX_STATE_READONLY. 194 // !AX_STATE_ENABLED.
195 enum AXState { 195 enum AXState {
196 busy, 196 busy,
197 checked, 197 checked,
198 collapsed, 198 collapsed,
199 default, 199 default,
200 disabled, // ui/views only 200 disabled, // ui/views only
201 editable, // ui/views only 201 editable,
202 enabled, // content only 202 enabled, // content only
203 expanded, 203 expanded,
204 focusable, 204 focusable,
205 focused, 205 focused,
206 haspopup, 206 haspopup,
207 horizontal, 207 horizontal,
208 hovered, 208 hovered,
209 indeterminate, 209 indeterminate,
210 invisible, 210 invisible,
211 linked, 211 linked,
212 multiline, 212 multiline,
213 multiselectable, 213 multiselectable,
214 offscreen, 214 offscreen,
215 pressed, 215 pressed,
216 protected, 216 protected,
217 read_only, 217 read_only,
218 required, 218 required,
219 richly_editable,
219 selectable, 220 selectable,
220 selected, 221 selected,
221 vertical, 222 vertical,
222 visited 223 visited
223 }; 224 };
224 225
225 // A change to the accessibility tree. 226 // A change to the accessibility tree.
226 enum AXMutation { 227 enum AXMutation {
227 node_created, 228 node_created,
228 subtree_created, 229 subtree_created,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 scroll_x_max, 267 scroll_x_max,
267 scroll_y, 268 scroll_y,
268 scroll_y_min, 269 scroll_y_min,
269 scroll_y_max, 270 scroll_y_max,
270 271
271 // Attributes for retrieving the endpoints of a selection. 272 // Attributes for retrieving the endpoints of a selection.
272 anchor_object_id, 273 anchor_object_id,
273 anchor_offset, 274 anchor_offset,
274 focus_object_id, 275 focus_object_id,
275 focus_offset, 276 focus_offset,
276 // Deprecated.
277 text_sel_start, 277 text_sel_start,
278 text_sel_end, 278 text_sel_end,
279 279
280 // Table attributes. 280 // Table attributes.
281 table_row_count, 281 table_row_count,
282 table_column_count, 282 table_column_count,
283 table_header_id, 283 table_header_id,
284 284
285 // Table row attributes. 285 // Table row attributes.
286 table_row_index, 286 table_row_index,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 }; 444 };
445 445
446 [cpp_enum_prefix_override="ax"] enum AXSortDirection { 446 [cpp_enum_prefix_override="ax"] enum AXSortDirection {
447 sort_direction_unsorted, 447 sort_direction_unsorted,
448 sort_direction_ascending, 448 sort_direction_ascending,
449 sort_direction_descending, 449 sort_direction_descending,
450 sort_direction_other 450 sort_direction_other
451 }; 451 };
452 452
453 }; 453 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698