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

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

Issue 1768753003: Implemented the reporting of text style and language information on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test expectations. Created 4 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
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_tree_data.h » ('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 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 506
507 for (size_t i = 0; i < string_attributes.size(); ++i) { 507 for (size_t i = 0; i < string_attributes.size(); ++i) {
508 std::string value = string_attributes[i].second; 508 std::string value = string_attributes[i].second;
509 switch (string_attributes[i].first) { 509 switch (string_attributes[i].first) {
510 case AX_ATTR_ACCESS_KEY: 510 case AX_ATTR_ACCESS_KEY:
511 result += " access_key=" + value; 511 result += " access_key=" + value;
512 break; 512 break;
513 case AX_ATTR_ACTION: 513 case AX_ATTR_ACTION:
514 result += " action=" + value; 514 result += " action=" + value;
515 break; 515 break;
516 case AX_ATTR_ARIA_INVALID_VALUE:
517 result += " aria_invalid_value=" + value;
518 break;
516 case AX_ATTR_AUTO_COMPLETE: 519 case AX_ATTR_AUTO_COMPLETE:
517 result += " autocomplete=" + value; 520 result += " autocomplete=" + value;
518 break; 521 break;
519 case AX_ATTR_DESCRIPTION: 522 case AX_ATTR_DESCRIPTION:
520 result += " description=" + value; 523 result += " description=" + value;
521 break; 524 break;
522 case AX_ATTR_DISPLAY: 525 case AX_ATTR_DISPLAY:
523 result += " display=" + value; 526 result += " display=" + value;
524 break; 527 break;
528 case AX_ATTR_FONT_FAMILY:
529 result += " font-family=" + value;
530 break;
525 case AX_ATTR_HTML_TAG: 531 case AX_ATTR_HTML_TAG:
526 result += " html_tag=" + value; 532 result += " html_tag=" + value;
527 break; 533 break;
528 case AX_ATTR_ARIA_INVALID_VALUE: 534 case AX_ATTR_LANGUAGE:
529 result += " aria_invalid_value=" + value; 535 result += " language=" + value;
530 break; 536 break;
531 case AX_ATTR_LIVE_RELEVANT: 537 case AX_ATTR_LIVE_RELEVANT:
532 result += " relevant=" + value; 538 result += " relevant=" + value;
533 break; 539 break;
534 case AX_ATTR_LIVE_STATUS: 540 case AX_ATTR_LIVE_STATUS:
535 result += " live=" + value; 541 result += " live=" + value;
536 break; 542 break;
537 case AX_ATTR_CONTAINER_LIVE_RELEVANT: 543 case AX_ATTR_CONTAINER_LIVE_RELEVANT:
538 result += " container_relevant=" + value; 544 result += " container_relevant=" + value;
539 break; 545 break;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 bool AXNodeData::IsRoot() const { 674 bool AXNodeData::IsRoot() const {
669 return (role == AX_ROLE_ROOT_WEB_AREA || 675 return (role == AX_ROLE_ROOT_WEB_AREA ||
670 role == AX_ROLE_DESKTOP); 676 role == AX_ROLE_DESKTOP);
671 } 677 }
672 678
673 void AXNodeData::SetRoot() { 679 void AXNodeData::SetRoot() {
674 role = AX_ROLE_ROOT_WEB_AREA; 680 role = AX_ROLE_ROOT_WEB_AREA;
675 } 681 }
676 682
677 } // namespace ui 683 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_tree_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698