OLD | NEW |
---|---|
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 <execinfo.h> | 5 #include <execinfo.h> |
6 | 6 |
7 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 7 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1301 [ret addObjectsFromArray:[NSArray arrayWithObjects: | 1301 [ret addObjectsFromArray:[NSArray arrayWithObjects: |
1302 NSAccessibilityURLAttribute, | 1302 NSAccessibilityURLAttribute, |
1303 nil]]; | 1303 nil]]; |
1304 } | 1304 } |
1305 | 1305 |
1306 // Live regions. | 1306 // Live regions. |
1307 if (browserAccessibility_->HasStringAttribute( | 1307 if (browserAccessibility_->HasStringAttribute( |
1308 ui::AX_ATTR_LIVE_STATUS)) { | 1308 ui::AX_ATTR_LIVE_STATUS)) { |
1309 [ret addObjectsFromArray:[NSArray arrayWithObjects: | 1309 [ret addObjectsFromArray:[NSArray arrayWithObjects: |
1310 @"AXARIALive", | 1310 @"AXARIALive", |
1311 nil]]; | |
1312 } | |
1313 if (browserAccessibility_->HasStringAttribute( | |
dmazzoni
2014/11/07 21:28:43
I'm not sure this change is needed. aria-relevant
shreeramk
2014/11/08 09:21:34
But for ARIA role log, Specs says:
Note: Elements
dmazzoni
2014/11/11 06:44:02
That's correct. But we handle this in Blink, so if
shreeramk
2014/11/19 03:45:36
Yes correct its handled in blink.
I was looking i
| |
1314 ui::AX_ATTR_CONTAINER_LIVE_RELEVANT)) { | |
1315 [ret addObjectsFromArray:[NSArray arrayWithObjects: | |
1311 @"AXARIARelevant", | 1316 @"AXARIARelevant", |
1312 nil]]; | 1317 nil]]; |
1313 } | 1318 } |
1314 if (browserAccessibility_->HasStringAttribute( | 1319 if (browserAccessibility_->HasStringAttribute( |
1315 ui::AX_ATTR_CONTAINER_LIVE_STATUS)) { | 1320 ui::AX_ATTR_CONTAINER_LIVE_STATUS)) { |
1316 [ret addObjectsFromArray:[NSArray arrayWithObjects: | 1321 [ret addObjectsFromArray:[NSArray arrayWithObjects: |
1317 @"AXARIAAtomic", | 1322 @"AXARIAAtomic", |
1318 @"AXARIABusy", | 1323 @"AXARIABusy", |
1319 nil]]; | 1324 nil]]; |
1320 } | 1325 } |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1474 return [super hash]; | 1479 return [super hash]; |
1475 return browserAccessibility_->GetId(); | 1480 return browserAccessibility_->GetId(); |
1476 } | 1481 } |
1477 | 1482 |
1478 - (BOOL)accessibilityShouldUseUniqueId { | 1483 - (BOOL)accessibilityShouldUseUniqueId { |
1479 return YES; | 1484 return YES; |
1480 } | 1485 } |
1481 | 1486 |
1482 @end | 1487 @end |
1483 | 1488 |
OLD | NEW |