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

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

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Fix compiler error 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 unknown, 205 unknown,
206 tooltip, 206 tooltip,
207 video, 207 video,
208 web_area, 208 web_area,
209 web_view, 209 web_view,
210 window 210 window
211 }; 211 };
212 212
213 enum AXState { 213 enum AXState {
214 busy, 214 busy,
215 checked,
216 collapsed, 215 collapsed,
217 default, 216 default,
218 disabled, 217 disabled,
219 editable, 218 editable,
220 expanded, 219 expanded,
221 focusable, 220 focusable,
222 haspopup, 221 haspopup,
223 // Grows horizontally, e.g. most toolbars and separators. 222 // Grows horizontally, e.g. most toolbars and separators.
224 horizontal, 223 horizontal,
225 hovered, 224 hovered,
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 // Text attributes. 423 // Text attributes.
425 424
426 // Foreground and background color in RGBA. 425 // Foreground and background color in RGBA.
427 background_color, 426 background_color,
428 color, 427 color,
429 428
430 // Indicates if a form control has invalid input or 429 // Indicates if a form control has invalid input or
431 // if an element has an aria-invalid attribute. 430 // if an element has an aria-invalid attribute.
432 invalid_state, 431 invalid_state,
433 432
433 // Unchecked (0), Checked (1), Mixed (2)
dmazzoni 2017/02/28 00:10:50 Don't specify the enum values, just say it's of ty
434 checked_state,
435
434 // Specifies the direction of the text, e.g., right-to-left. 436 // Specifies the direction of the text, e.g., right-to-left.
435 text_direction, 437 text_direction,
436 438
437 // Bold, italic, underline, etc. 439 // Bold, italic, underline, etc.
438 text_style 440 text_style
439 }; 441 };
440 442
441 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute { 443 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute {
442 // Range attributes. 444 // Range attributes.
443 value_for_range, 445 value_for_range,
444 min_value_for_range, 446 min_value_for_range,
445 max_value_for_range, 447 max_value_for_range,
446 448
447 // Text attributes. 449 // Text attributes.
448 // Font size is in pixels. 450 // Font size is in pixels.
449 font_size 451 font_size
450 }; 452 };
451 453
452 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute { 454 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute {
453 // True if an ARIA toggle button, a checkbox or
454 // a menu item checkbox is in the "mixed" state.
455 STATE_mixed,
456
457 // Live region attributes. 455 // Live region attributes.
458 container_live_atomic, 456 container_live_atomic,
459 container_live_busy, 457 container_live_busy,
460 live_atomic, 458 live_atomic,
461 live_busy, 459 live_busy,
462 460
463 // If a dialog box is marked as explicitly modal 461 // If a dialog box is marked as explicitly modal
464 modal, 462 modal,
465 463
466 // ARIA readonly flag. 464 // ARIA readonly flag.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 }; 580 };
583 581
584 enum AXInvalidState { 582 enum AXInvalidState {
585 false, 583 false,
586 true, 584 true,
587 spelling, 585 spelling,
588 grammar, 586 grammar,
589 other 587 other
590 }; 588 };
591 589
590 enum AXCheckedState {
591 false,
592 true,
593 mixed
594 };
595
592 enum AXSortDirection { 596 enum AXSortDirection {
593 unsorted, 597 unsorted,
594 ascending, 598 ascending,
595 descending, 599 descending,
596 other 600 other
597 }; 601 };
598 602
599 enum AXNameFrom { 603 enum AXNameFrom {
600 uninitialized, 604 uninitialized,
601 attribute, 605 attribute,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 // First node is before the second one. 657 // First node is before the second one.
654 before, 658 before,
655 659
656 // Nodes are the same. 660 // Nodes are the same.
657 equal, 661 equal,
658 662
659 // First node is after the second one. 663 // First node is after the second one.
660 after 664 after
661 }; 665 };
662 }; 666 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698