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

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

Issue 2719223002: Use correct position when setting pos_in_set for tabs.
Patch Set: Potential nit. Created 3 years, 9 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 // TODO(nektar): Migrate entire file to Mojoq. 5 // TODO(nektar): Migrate entire file to Mojoq.
6 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h 6 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h
7 // until the Chromium and Blink trees are merged. 7 // until the Chromium and Blink trees are merged.
8 [camel_case_enum_to_string=true] namespace ui { 8 [camel_case_enum_to_string=true] namespace ui {
9 9
10 // For new entries to the following four enums, also add to 10 // For new entries to the following four enums, also add to
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // Relationships between this element and other elements. 403 // Relationships between this element and other elements.
404 activedescendant_id, 404 activedescendant_id,
405 errormessage_id, 405 errormessage_id,
406 member_of_id, 406 member_of_id,
407 next_on_line_id, 407 next_on_line_id,
408 previous_on_line_id, 408 previous_on_line_id,
409 409
410 // Identifies a child tree which this node hosts. 410 // Identifies a child tree which this node hosts.
411 child_tree_id, 411 child_tree_id,
412 412
413 // Position or Number of items in current set of listitems or treeitems 413 // Number of items in a set typically of treeitems orlistitems.
414 set_size, 414 set_size,
415
416 // The 1-based position of the item within the set above. Do not set
417 // |index_in_set|.
415 pos_in_set, 418 pos_in_set,
416 419
417 // In the case of AX_ROLE_COLOR_WELL, specifies the selected color. 420 // In the case of AX_ROLE_COLOR_WELL, specifies the selected color.
418 color_value, 421 color_value,
419 422
420 // Indicates the element that represents the current item within a container 423 // Indicates the element that represents the current item within a container
421 // or set of related elements. 424 // or set of related elements.
422 aria_current_state, 425 aria_current_state,
423 426
424 // Text attributes. 427 // Text attributes.
425 428
426 // Foreground and background color in RGBA. 429 // Foreground and background color in RGBA.
427 background_color, 430 background_color,
428 color, 431 color,
429 432
430 // Indicates if a form control has invalid input or 433 // Indicates if a form control has invalid input or
431 // if an element has an aria-invalid attribute. 434 // if an element has an aria-invalid attribute.
432 invalid_state, 435 invalid_state,
433 436
434 // Specifies the direction of the text, e.g., right-to-left. 437 // Specifies the direction of the text, e.g., right-to-left.
435 text_direction, 438 text_direction,
436 439
437 // Bold, italic, underline, etc. 440 // Bold, italic, underline, etc.
438 text_style 441 text_style
439 }; 442 };
440 443
444 [cpp_enum_prefix_override="ax_attr"] enum AXValidatedIntAttribute {
445 // The 0-based position of the item within the set of |set_size| items. Do
446 // not set |pos_in_set|.
447 index_in_set,
448 };
449
441 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute { 450 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute {
442 // Range attributes. 451 // Range attributes.
443 value_for_range, 452 value_for_range,
444 min_value_for_range, 453 min_value_for_range,
445 max_value_for_range, 454 max_value_for_range,
446 455
447 // Text attributes. 456 // Text attributes.
448 // Font size is in pixels. 457 // Font size is in pixels.
449 font_size 458 font_size
450 }; 459 };
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 // First node is before the second one. 662 // First node is before the second one.
654 before, 663 before,
655 664
656 // Nodes are the same. 665 // Nodes are the same.
657 equal, 666 equal,
658 667
659 // First node is after the second one. 668 // First node is after the second one.
660 after 669 after
661 }; 670 };
662 }; 671 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698