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

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

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 years, 1 month 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
« no previous file with comments | « third_party/WebKit/public/web/WebAXObject.h ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 }; 234 };
235 235
236 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { 236 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute {
237 access_key, 237 access_key,
238 action, 238 action,
239 auto_complete, 239 auto_complete,
240 container_live_relevant, 240 container_live_relevant,
241 container_live_status, 241 container_live_status,
242 description, 242 description,
243 display, 243 display,
244 help,
245 html_tag, 244 html_tag,
246 // Only used when invalid_state == invalid_state_other. 245 // Only used when invalid_state == invalid_state_other.
247 aria_invalid_value, 246 aria_invalid_value,
248 name, 247 name,
249 live_relevant, 248 live_relevant,
250 live_status, 249 live_status,
251 placeholder, 250 placeholder,
252 role, 251 role,
253 shortcut, 252 shortcut,
254 url, 253 url,
(...skipping 29 matching lines...) Expand all
284 // Table cell attributes. 283 // Table cell attributes.
285 table_cell_column_index, 284 table_cell_column_index,
286 table_cell_column_span, 285 table_cell_column_span,
287 table_cell_row_index, 286 table_cell_row_index,
288 table_cell_row_span, 287 table_cell_row_span,
289 sort_direction, 288 sort_direction,
290 289
291 // Tree control attributes. 290 // Tree control attributes.
292 hierarchical_level, 291 hierarchical_level,
293 292
293 // What information was used to compute the object's name
294 // (of type AXNameFrom).
295 name_from,
296
297 // What information was used to compute the object's description
298 // (of type AXDescriptionFrom).
299 description_from,
300
294 // Relationships between this element and other elements. 301 // Relationships between this element and other elements.
295 title_ui_element,
296 activedescendant_id, 302 activedescendant_id,
297 303
298 // Identifies a child tree which this node hosts. 304 // Identifies a child tree which this node hosts.
299 child_tree_id, 305 child_tree_id,
300 306
301 // Position or Number of items in current set of listitems or treeitems 307 // Position or Number of items in current set of listitems or treeitems
302 set_size, 308 set_size,
303 pos_in_set, 309 pos_in_set,
304 310
305 // In the case of AX_ROLE_COLOR_WELL, specifies the selected color. 311 // In the case of AX_ROLE_COLOR_WELL, specifies the selected color.
306 color_value, 312 color_value,
307 313
308
309 // Text attributes. 314 // Text attributes.
310 315
311 // Foreground and background color in RGBA. 316 // Foreground and background color in RGBA.
312 background_color, 317 background_color,
313 color, 318 color,
314 319
315 // Indicates if a form control has invalid input or 320 // Indicates if a form control has invalid input or
316 // if an element has an aria-invalid attribute. 321 // if an element has an aria-invalid attribute.
317 invalid_state, 322 invalid_state,
318 323
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // not children of this node in the tree structure. As an example, 368 // not children of this node in the tree structure. As an example,
364 // a table cell is a child of a row, and an 'indirect' child of a 369 // a table cell is a child of a row, and an 'indirect' child of a
365 // column. 370 // column.
366 indirect_child_ids, 371 indirect_child_ids,
367 372
368 // Relationships between this element and other elements. 373 // Relationships between this element and other elements.
369 controls_ids, 374 controls_ids,
370 describedby_ids, 375 describedby_ids,
371 flowto_ids, 376 flowto_ids,
372 labelledby_ids, 377 labelledby_ids,
373 owns_ids,
374 378
375 // Character indices where line breaks occur. 379 // Character indices where line breaks occur.
376 line_breaks, 380 line_breaks,
377 381
378 // For a table, the cell ids in row-major order, with duplicate entries 382 // For a table, the cell ids in row-major order, with duplicate entries
379 // when there's a rowspan or colspan, and with -1 for missing cells. 383 // when there's a rowspan or colspan, and with -1 for missing cells.
380 // There are always exactly rows * columns entries. 384 // There are always exactly rows * columns entries.
381 cell_ids, 385 cell_ids,
382 386
383 // For a table, the unique cell ids in row-major order of their first 387 // For a table, the unique cell ids in row-major order of their first
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 invalid_state_other 426 invalid_state_other
423 }; 427 };
424 428
425 [cpp_enum_prefix_override="ax"] enum AXSortDirection { 429 [cpp_enum_prefix_override="ax"] enum AXSortDirection {
426 sort_direction_unsorted, 430 sort_direction_unsorted,
427 sort_direction_ascending, 431 sort_direction_ascending,
428 sort_direction_descending, 432 sort_direction_descending,
429 sort_direction_other 433 sort_direction_other
430 }; 434 };
431 435
436 [cpp_enum_prefix_override="ax"] enum AXNameFrom {
437 name_from_uninitialized = 0,
438 name_from_attribute,
439 name_from_contents,
440 name_from_placeholder,
441 name_from_related_element,
442 name_from_value
443 };
444
445 [cpp_enum_prefix_override="ax"] enum AXDescriptionFrom {
446 description_from_uninitialized = 0,
447 description_from_attribute,
448 description_from_contents,
449 description_from_placeholder,
450 description_from_related_element
451 };
432 }; 452 };
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebAXObject.h ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698