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

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

Issue 700293004: HTML Ruby tag is not exposed on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: uploading expectations for mac and android Created 6 years, 1 month 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 3687 matching lines...) Expand 10 before | Expand all | Expand 10 after
3698 } else { 3698 } else {
3699 ia_role_ = ROLE_SYSTEM_PANE; 3699 ia_role_ = ROLE_SYSTEM_PANE;
3700 } 3700 }
3701 break; 3701 break;
3702 case ui::AX_ROLE_ROW: 3702 case ui::AX_ROLE_ROW:
3703 ia_role_ = ROLE_SYSTEM_ROW; 3703 ia_role_ = ROLE_SYSTEM_ROW;
3704 break; 3704 break;
3705 case ui::AX_ROLE_ROW_HEADER: 3705 case ui::AX_ROLE_ROW_HEADER:
3706 ia_role_ = ROLE_SYSTEM_ROWHEADER; 3706 ia_role_ = ROLE_SYSTEM_ROWHEADER;
3707 break; 3707 break;
3708 case ui::AX_ROLE_RUBY:
3709 ia_role_ = ROLE_SYSTEM_TEXT;
3710 ia2_role_ = IA2_ROLE_TEXT_FRAME;
3711 break;
3708 case ui::AX_ROLE_RULER: 3712 case ui::AX_ROLE_RULER:
3709 ia_role_ = ROLE_SYSTEM_CLIENT; 3713 ia_role_ = ROLE_SYSTEM_CLIENT;
3710 ia2_role_ = IA2_ROLE_RULER; 3714 ia2_role_ = IA2_ROLE_RULER;
3711 ia_state_ |= STATE_SYSTEM_READONLY; 3715 ia_state_ |= STATE_SYSTEM_READONLY;
3712 break; 3716 break;
3713 case ui::AX_ROLE_SCROLL_AREA: 3717 case ui::AX_ROLE_SCROLL_AREA:
3714 ia_role_ = ROLE_SYSTEM_CLIENT; 3718 ia_role_ = ROLE_SYSTEM_CLIENT;
3715 ia2_role_ = IA2_ROLE_SCROLL_PANE; 3719 ia2_role_ = IA2_ROLE_SCROLL_PANE;
3716 ia_state_ |= STATE_SYSTEM_READONLY; 3720 ia_state_ |= STATE_SYSTEM_READONLY;
3717 ia2_state_ &= ~(IA2_STATE_EDITABLE); 3721 ia2_state_ &= ~(IA2_STATE_EDITABLE);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
3855 // The role should always be set. 3859 // The role should always be set.
3856 DCHECK(!role_name_.empty() || ia_role_); 3860 DCHECK(!role_name_.empty() || ia_role_);
3857 3861
3858 // If we didn't explicitly set the IAccessible2 role, make it the same 3862 // If we didn't explicitly set the IAccessible2 role, make it the same
3859 // as the MSAA role. 3863 // as the MSAA role.
3860 if (!ia2_role_) 3864 if (!ia2_role_)
3861 ia2_role_ = ia_role_; 3865 ia2_role_ = ia_role_;
3862 } 3866 }
3863 3867
3864 } // namespace content 3868 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/browser/accessibility/dump_accessibility_tree_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698