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

Side by Side Diff: ui/accessibility/ax_node_data.cc

Issue 1162263008: Exposes datetime attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-upload due to browser_accessibility_cocoa.mm Created 5 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "ui/accessibility/ax_node_data.h" 5 #include "ui/accessibility/ax_node_data.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 break; 492 break;
493 case AX_ATTR_AUTO_COMPLETE: 493 case AX_ATTR_AUTO_COMPLETE:
494 result += " autocomplete=" + value; 494 result += " autocomplete=" + value;
495 break; 495 break;
496 case AX_ATTR_DESCRIPTION: 496 case AX_ATTR_DESCRIPTION:
497 result += " description=" + value; 497 result += " description=" + value;
498 break; 498 break;
499 case AX_ATTR_DISPLAY: 499 case AX_ATTR_DISPLAY:
500 result += " display=" + value; 500 result += " display=" + value;
501 break; 501 break;
502 case AX_ATTR_DROPEFFECT:
503 result += " dropeffect=" + value;
504 break;
505 case AX_ATTR_HELP: 502 case AX_ATTR_HELP:
506 result += " help=" + value; 503 result += " help=" + value;
507 break; 504 break;
508 case AX_ATTR_HTML_TAG: 505 case AX_ATTR_HTML_TAG:
509 result += " html_tag=" + value; 506 result += " html_tag=" + value;
510 break; 507 break;
511 case AX_ATTR_ARIA_INVALID_VALUE: 508 case AX_ATTR_ARIA_INVALID_VALUE:
512 result += " aria_invalid_value=" + value; 509 result += " aria_invalid_value=" + value;
513 break; 510 break;
514 case AX_ATTR_LIVE_RELEVANT: 511 case AX_ATTR_LIVE_RELEVANT:
(...skipping 10 matching lines...) Expand all
525 break; 522 break;
526 case AX_ATTR_PLACEHOLDER: 523 case AX_ATTR_PLACEHOLDER:
527 result += "placeholder" + value; 524 result += "placeholder" + value;
528 break; 525 break;
529 case AX_ATTR_ROLE: 526 case AX_ATTR_ROLE:
530 result += " role=" + value; 527 result += " role=" + value;
531 break; 528 break;
532 case AX_ATTR_SHORTCUT: 529 case AX_ATTR_SHORTCUT:
533 result += " shortcut=" + value; 530 result += " shortcut=" + value;
534 break; 531 break;
535 case AX_ATTR_TEXT_INPUT_TYPE:
536 result += " text_input_type=" + value;
537 break;
538 case AX_ATTR_URL: 532 case AX_ATTR_URL:
539 result += " url=" + value; 533 result += " url=" + value;
540 break; 534 break;
541 case AX_ATTR_NAME: 535 case AX_ATTR_NAME:
542 result += " name=" + value; 536 result += " name=" + value;
543 break; 537 break;
544 case AX_ATTR_VALUE: 538 case AX_ATTR_VALUE:
545 result += " value=" + value; 539 result += " value=" + value;
546 break; 540 break;
547 case AX_STRING_ATTRIBUTE_NONE: 541 case AX_STRING_ATTRIBUTE_NONE:
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 break; 595 break;
602 case AX_ATTR_UPDATE_LOCATION_ONLY: 596 case AX_ATTR_UPDATE_LOCATION_ONLY:
603 result += " update_location_only=" + value; 597 result += " update_location_only=" + value;
604 break; 598 break;
605 case AX_ATTR_CANVAS_HAS_FALLBACK: 599 case AX_ATTR_CANVAS_HAS_FALLBACK:
606 result += " has_fallback=" + value; 600 result += " has_fallback=" + value;
607 break; 601 break;
608 case AX_ATTR_IS_AX_TREE_HOST: 602 case AX_ATTR_IS_AX_TREE_HOST:
609 result += " is_ax_tree_host=" + value; 603 result += " is_ax_tree_host=" + value;
610 break; 604 break;
611 case AX_ATTR_GRABBED:
612 result += " grabbed=" + value;
613 break;
614 case AX_BOOL_ATTRIBUTE_NONE: 605 case AX_BOOL_ATTRIBUTE_NONE:
615 break; 606 break;
616 } 607 }
617 } 608 }
618 609
619 for (size_t i = 0; i < intlist_attributes.size(); ++i) { 610 for (size_t i = 0; i < intlist_attributes.size(); ++i) {
620 const std::vector<int32>& values = intlist_attributes[i].second; 611 const std::vector<int32>& values = intlist_attributes[i].second;
621 switch (intlist_attributes[i].first) { 612 switch (intlist_attributes[i].first) {
622 case AX_ATTR_INDIRECT_CHILD_IDS: 613 case AX_ATTR_INDIRECT_CHILD_IDS:
623 result += " indirect_child_ids=" + IntVectorToString(values); 614 result += " indirect_child_ids=" + IntVectorToString(values);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 } 651 }
661 } 652 }
662 653
663 if (!child_ids.empty()) 654 if (!child_ids.empty())
664 result += " child_ids=" + IntVectorToString(child_ids); 655 result += " child_ids=" + IntVectorToString(child_ids);
665 656
666 return result; 657 return result;
667 } 658 }
668 659
669 } // namespace ui 660 } // namespace ui
OLDNEW
« content/renderer/accessibility/blink_ax_tree_source.cc ('K') | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698