OLD | NEW |
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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 table_cell_row_span, | 292 table_cell_row_span, |
293 sort_direction, | 293 sort_direction, |
294 | 294 |
295 // Tree control attributes. | 295 // Tree control attributes. |
296 hierarchical_level, | 296 hierarchical_level, |
297 | 297 |
298 // Relationships between this element and other elements. | 298 // Relationships between this element and other elements. |
299 title_ui_element, | 299 title_ui_element, |
300 activedescendant_id, | 300 activedescendant_id, |
301 | 301 |
302 // Color value for AX_ROLE_COLOR_WELL, each component is 0..255 | |
303 color_value_red, | |
304 color_value_green, | |
305 color_value_blue, | |
306 | |
307 // Inline text attributes. | |
308 text_direction, | |
309 | |
310 // Uniquely identifies an AXTree. | 302 // Uniquely identifies an AXTree. |
311 tree_id, | 303 tree_id, |
312 | 304 |
313 // Identifies a child tree which this node hosts. | 305 // Identifies a child tree which this node hosts. |
314 child_tree_id, | 306 child_tree_id, |
315 | 307 |
316 // Position or Number of items in current set of listitems or treeitems | 308 // Position or Number of items in current set of listitems or treeitems |
317 set_size, | 309 set_size, |
318 pos_in_set, | 310 pos_in_set, |
319 | 311 |
| 312 // In the case of AX_ROLE_COLOR_WELL, specifies the selected color. |
| 313 color_value, |
| 314 |
| 315 |
| 316 // Text attributes. |
| 317 |
| 318 // Foreground and background color in RGBA. |
| 319 background_color, |
| 320 color, |
| 321 |
320 // Indicates if a form control has invalid input or | 322 // Indicates if a form control has invalid input or |
321 // if an element has an aria-invalid attribute. | 323 // if an element has an aria-invalid attribute. |
322 invalid_state | 324 invalid_state, |
| 325 |
| 326 // Specifies the direction of the text, e.g., right-to-left. |
| 327 text_direction, |
| 328 |
| 329 // Bold, italic, underline, etc. |
| 330 text_style |
323 }; | 331 }; |
324 | 332 |
325 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute { | 333 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute { |
326 // Document attributes. | 334 // Document attributes. |
327 doc_loading_progress, | 335 doc_loading_progress, |
328 | 336 |
329 // Range attributes. | 337 // Range attributes. |
330 value_for_range, | 338 value_for_range, |
331 min_value_for_range, | 339 min_value_for_range, |
332 max_value_for_range | 340 max_value_for_range, |
| 341 |
| 342 // Text attributes. |
| 343 // Font size is in pixels. |
| 344 font_size |
333 }; | 345 }; |
334 | 346 |
335 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute { | 347 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute { |
336 // Document attributes. | 348 // Document attributes. |
337 doc_loaded, | 349 doc_loaded, |
338 | 350 |
339 // True if a checkbox or radio button is in the "mixed" state. | 351 // True if a checkbox or radio button is in the "mixed" state. |
340 button_mixed, | 352 button_mixed, |
341 | 353 |
342 // Live region attributes. | 354 // Live region attributes. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 // of the second character, and so on. | 414 // of the second character, and so on. |
403 character_offsets, | 415 character_offsets, |
404 | 416 |
405 // For inline text. These int lists must be the same size; they represent | 417 // For inline text. These int lists must be the same size; they represent |
406 // the start and end character index of each word within this text. | 418 // the start and end character index of each word within this text. |
407 word_starts, | 419 word_starts, |
408 word_ends | 420 word_ends |
409 }; | 421 }; |
410 | 422 |
411 [cpp_enum_prefix_override="ax"] enum AXTextDirection { | 423 [cpp_enum_prefix_override="ax"] enum AXTextDirection { |
412 text_direction_lr, | 424 text_direction_ltr, |
413 text_direction_rl, | 425 text_direction_rtl, |
414 text_direction_tb, | 426 text_direction_ttb, |
415 text_direction_bt | 427 text_direction_btt |
| 428 }; |
| 429 |
| 430 [cpp_enum_prefix_override="ax"] enum AXTextStyle { |
| 431 text_style_bold, |
| 432 text_style_italic, |
| 433 text_style_underline, |
| 434 text_style_line_through |
416 }; | 435 }; |
417 | 436 |
418 [cpp_enum_prefix_override="ax"] enum AXInvalidState { | 437 [cpp_enum_prefix_override="ax"] enum AXInvalidState { |
419 invalid_state_false, | 438 invalid_state_false, |
420 invalid_state_true, | 439 invalid_state_true, |
421 invalid_state_spelling, | 440 invalid_state_spelling, |
422 invalid_state_grammar, | 441 invalid_state_grammar, |
423 invalid_state_other | 442 invalid_state_other |
424 }; | 443 }; |
425 | 444 |
426 [cpp_enum_prefix_override="ax"] enum AXSortDirection { | 445 [cpp_enum_prefix_override="ax"] enum AXSortDirection { |
427 sort_direction_unsorted, | 446 sort_direction_unsorted, |
428 sort_direction_ascending, | 447 sort_direction_ascending, |
429 sort_direction_descending, | 448 sort_direction_descending, |
430 sort_direction_other | 449 sort_direction_other |
431 }; | 450 }; |
432 | 451 |
433 }; | 452 }; |
OLD | NEW |