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

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

Issue 651133003: Make HTML5 <mark> accessible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updating mac expectations Created 5 years, 6 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 4085 matching lines...) Expand 10 before | Expand all | Expand 10 after
4096 } 4096 }
4097 break; 4097 break;
4098 case ui::AX_ROLE_LIST_ITEM: 4098 case ui::AX_ROLE_LIST_ITEM:
4099 ia_role = ROLE_SYSTEM_LISTITEM; 4099 ia_role = ROLE_SYSTEM_LISTITEM;
4100 ia_state |= STATE_SYSTEM_READONLY; 4100 ia_state |= STATE_SYSTEM_READONLY;
4101 break; 4101 break;
4102 case ui::AX_ROLE_MAIN: 4102 case ui::AX_ROLE_MAIN:
4103 ia_role = ROLE_SYSTEM_GROUPING; 4103 ia_role = ROLE_SYSTEM_GROUPING;
4104 ia2_role = IA2_ROLE_PARAGRAPH; 4104 ia2_role = IA2_ROLE_PARAGRAPH;
4105 break; 4105 break;
4106 case ui::AX_ROLE_MARK:
4107 ia_role = ROLE_SYSTEM_TEXT;
4108 ia2_role = IA2_ROLE_TEXT_FRAME;
4109 break;
4106 case ui::AX_ROLE_MARQUEE: 4110 case ui::AX_ROLE_MARQUEE:
4107 ia_role = ROLE_SYSTEM_ANIMATION; 4111 ia_role = ROLE_SYSTEM_ANIMATION;
4108 break; 4112 break;
4109 case ui::AX_ROLE_MATH: 4113 case ui::AX_ROLE_MATH:
4110 ia_role = ROLE_SYSTEM_EQUATION; 4114 ia_role = ROLE_SYSTEM_EQUATION;
4111 break; 4115 break;
4112 case ui::AX_ROLE_MENU: 4116 case ui::AX_ROLE_MENU:
4113 case ui::AX_ROLE_MENU_BUTTON: 4117 case ui::AX_ROLE_MENU_BUTTON:
4114 ia_role = ROLE_SYSTEM_MENUPOPUP; 4118 ia_role = ROLE_SYSTEM_MENUPOPUP;
4115 break; 4119 break;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
4352 ia2_role = ia_role; 4356 ia2_role = ia_role;
4353 4357
4354 win_attributes_->ia_role = ia_role; 4358 win_attributes_->ia_role = ia_role;
4355 win_attributes_->ia_state = ia_state; 4359 win_attributes_->ia_state = ia_state;
4356 win_attributes_->role_name = role_name; 4360 win_attributes_->role_name = role_name;
4357 win_attributes_->ia2_role = ia2_role; 4361 win_attributes_->ia2_role = ia2_role;
4358 win_attributes_->ia2_state = ia2_state; 4362 win_attributes_->ia2_state = ia2_state;
4359 } 4363 }
4360 4364
4361 } // namespace content 4365 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698