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

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

Issue 1905263002: Correctly finds line boundaries in objects with rich text on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed standard text fields in unit test. Created 4 years, 7 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_combiner.cc » ('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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 result += " name_from=" + ui::ToString( 429 result += " name_from=" + ui::ToString(
430 static_cast<ui::AXNameFrom>(int_attributes[i].second)); 430 static_cast<ui::AXNameFrom>(int_attributes[i].second));
431 break; 431 break;
432 case AX_ATTR_DESCRIPTION_FROM: 432 case AX_ATTR_DESCRIPTION_FROM:
433 result += " description_from=" + ui::ToString( 433 result += " description_from=" + ui::ToString(
434 static_cast<ui::AXDescriptionFrom>(int_attributes[i].second)); 434 static_cast<ui::AXDescriptionFrom>(int_attributes[i].second));
435 break; 435 break;
436 case AX_ATTR_ACTIVEDESCENDANT_ID: 436 case AX_ATTR_ACTIVEDESCENDANT_ID:
437 result += " activedescendant=" + value; 437 result += " activedescendant=" + value;
438 break; 438 break;
439 case AX_ATTR_NEXT_ON_LINE_ID:
440 result += " next_on_line_id=" + value;
441 break;
442 case AX_ATTR_PREVIOUS_ON_LINE_ID:
443 result += " previous_on_line_id=" + value;
444 break;
439 case AX_ATTR_CHILD_TREE_ID: 445 case AX_ATTR_CHILD_TREE_ID:
440 result += " child_tree_id=" + value; 446 result += " child_tree_id=" + value;
441 break; 447 break;
442 case AX_ATTR_COLOR_VALUE: 448 case AX_ATTR_COLOR_VALUE:
443 result += base::StringPrintf(" color_value=&%X", 449 result += base::StringPrintf(" color_value=&%X",
444 int_attributes[i].second); 450 int_attributes[i].second);
445 break; 451 break;
446 case AX_ATTR_BACKGROUND_COLOR: 452 case AX_ATTR_BACKGROUND_COLOR:
447 result += base::StringPrintf(" background_color=&%X", 453 result += base::StringPrintf(" background_color=&%X",
448 int_attributes[i].second); 454 int_attributes[i].second);
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 bool AXNodeData::IsRoot() const { 688 bool AXNodeData::IsRoot() const {
683 return (role == AX_ROLE_ROOT_WEB_AREA || 689 return (role == AX_ROLE_ROOT_WEB_AREA ||
684 role == AX_ROLE_DESKTOP); 690 role == AX_ROLE_DESKTOP);
685 } 691 }
686 692
687 void AXNodeData::SetRoot() { 693 void AXNodeData::SetRoot() {
688 role = AX_ROLE_ROOT_WEB_AREA; 694 role = AX_ROLE_ROOT_WEB_AREA;
689 } 695 }
690 696
691 } // namespace ui 697 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_tree_combiner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698