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

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: Add dl role handling in automation.idl 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 3434 matching lines...) Expand 10 before | Expand all | Expand 10 after
3445 case ui::AX_ROLE_DEFINITION: 3445 case ui::AX_ROLE_DEFINITION:
3446 role_name_ = html_tag; 3446 role_name_ = html_tag;
3447 ia2_role_ = IA2_ROLE_PARAGRAPH; 3447 ia2_role_ = IA2_ROLE_PARAGRAPH;
3448 ia_state_ |= STATE_SYSTEM_READONLY; 3448 ia_state_ |= STATE_SYSTEM_READONLY;
3449 break; 3449 break;
3450 case ui::AX_ROLE_DESCRIPTION_LIST_DETAIL: 3450 case ui::AX_ROLE_DESCRIPTION_LIST_DETAIL:
3451 role_name_ = html_tag; 3451 role_name_ = html_tag;
3452 ia2_role_ = IA2_ROLE_PARAGRAPH; 3452 ia2_role_ = IA2_ROLE_PARAGRAPH;
3453 ia_state_ |= STATE_SYSTEM_READONLY; 3453 ia_state_ |= STATE_SYSTEM_READONLY;
3454 break; 3454 break;
3455 case ui::AX_ROLE_DESCRIPTION_LIST:
3456 role_name_ = html_tag;
3457 ia_role_ = ROLE_SYSTEM_LIST;
3458 ia_state_ |= STATE_SYSTEM_READONLY;
3459 break;
3455 case ui::AX_ROLE_DESCRIPTION_LIST_TERM: 3460 case ui::AX_ROLE_DESCRIPTION_LIST_TERM:
3456 ia_role_ = ROLE_SYSTEM_LISTITEM; 3461 ia_role_ = ROLE_SYSTEM_LISTITEM;
3457 ia_state_ |= STATE_SYSTEM_READONLY; 3462 ia_state_ |= STATE_SYSTEM_READONLY;
3458 break; 3463 break;
3459 case ui::AX_ROLE_DETAILS: 3464 case ui::AX_ROLE_DETAILS:
3460 ia_role_ = ROLE_SYSTEM_GROUPING; 3465 ia_role_ = ROLE_SYSTEM_GROUPING;
3461 break; 3466 break;
3462 case ui::AX_ROLE_DIALOG: 3467 case ui::AX_ROLE_DIALOG:
3463 ia_role_ = ROLE_SYSTEM_DIALOG; 3468 ia_role_ = ROLE_SYSTEM_DIALOG;
3464 ia_state_ |= STATE_SYSTEM_READONLY; 3469 ia_state_ |= STATE_SYSTEM_READONLY;
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
3806 // The role should always be set. 3811 // The role should always be set.
3807 DCHECK(!role_name_.empty() || ia_role_); 3812 DCHECK(!role_name_.empty() || ia_role_);
3808 3813
3809 // If we didn't explicitly set the IAccessible2 role, make it the same 3814 // If we didn't explicitly set the IAccessible2 role, make it the same
3810 // as the MSAA role. 3815 // as the MSAA role.
3811 if (!ia2_role_) 3816 if (!ia2_role_)
3812 ia2_role_ = ia_role_; 3817 ia2_role_ = ia_role_;
3813 } 3818 }
3814 3819
3815 } // namespace content 3820 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/renderer/accessibility/blink_ax_enum_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698