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

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 607053002: Add conversion rule for WebAXRoleDescriptionList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/accessibility/browser_accessibility_win.h" 5 #include "content/browser/accessibility/browser_accessibility_win.h"
6 6
7 #include <UIAutomationClient.h> 7 #include <UIAutomationClient.h>
8 #include <UIAutomationCoreApi.h> 8 #include <UIAutomationCoreApi.h>
9 9
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 3435 matching lines...) Expand 10 before | Expand all | Expand 10 after
3446 case ui::AX_ROLE_DEFINITION: 3446 case ui::AX_ROLE_DEFINITION:
3447 role_name_ = html_tag; 3447 role_name_ = html_tag;
3448 ia2_role_ = IA2_ROLE_PARAGRAPH; 3448 ia2_role_ = IA2_ROLE_PARAGRAPH;
3449 ia_state_ |= STATE_SYSTEM_READONLY; 3449 ia_state_ |= STATE_SYSTEM_READONLY;
3450 break; 3450 break;
3451 case ui::AX_ROLE_DESCRIPTION_LIST_DETAIL: 3451 case ui::AX_ROLE_DESCRIPTION_LIST_DETAIL:
3452 role_name_ = html_tag; 3452 role_name_ = html_tag;
3453 ia2_role_ = IA2_ROLE_PARAGRAPH; 3453 ia2_role_ = IA2_ROLE_PARAGRAPH;
3454 ia_state_ |= STATE_SYSTEM_READONLY; 3454 ia_state_ |= STATE_SYSTEM_READONLY;
3455 break; 3455 break;
3456 case ui::AX_ROLE_DESCRIPTION_LIST:
3457 role_name_ = html_tag;
3458 ia_role_ = ROLE_SYSTEM_LIST;
3459 ia_state_ |= STATE_SYSTEM_READONLY;
3460 break;
3456 case ui::AX_ROLE_DESCRIPTION_LIST_TERM: 3461 case ui::AX_ROLE_DESCRIPTION_LIST_TERM:
3457 ia_role_ = ROLE_SYSTEM_LISTITEM; 3462 ia_role_ = ROLE_SYSTEM_LISTITEM;
3458 ia_state_ |= STATE_SYSTEM_READONLY; 3463 ia_state_ |= STATE_SYSTEM_READONLY;
3459 break; 3464 break;
3460 case ui::AX_ROLE_DIALOG: 3465 case ui::AX_ROLE_DIALOG:
3461 ia_role_ = ROLE_SYSTEM_DIALOG; 3466 ia_role_ = ROLE_SYSTEM_DIALOG;
3462 ia_state_ |= STATE_SYSTEM_READONLY; 3467 ia_state_ |= STATE_SYSTEM_READONLY;
3463 break; 3468 break;
3464 case ui::AX_ROLE_DISCLOSURE_TRIANGLE: 3469 case ui::AX_ROLE_DISCLOSURE_TRIANGLE:
3465 ia_role_ = ROLE_SYSTEM_OUTLINEBUTTON; 3470 ia_role_ = ROLE_SYSTEM_OUTLINEBUTTON;
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
3802 // The role should always be set. 3807 // The role should always be set.
3803 DCHECK(!role_name_.empty() || ia_role_); 3808 DCHECK(!role_name_.empty() || ia_role_);
3804 3809
3805 // If we didn't explicitly set the IAccessible2 role, make it the same 3810 // If we didn't explicitly set the IAccessible2 role, make it the same
3806 // as the MSAA role. 3811 // as the MSAA role.
3807 if (!ia2_role_) 3812 if (!ia2_role_)
3808 ia2_role_ = ia_role_; 3813 ia2_role_ = ia_role_;
3809 } 3814 }
3810 3815
3811 } // namespace content 3816 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/accessibility/blink_ax_enum_conversion.cc » ('j') | ui/accessibility/ax_enums.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698