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 "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 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2994 ia2_role() == IA2_ROLE_TOGGLE_BUTTON) { | 2994 ia2_role() == IA2_ROLE_TOGGLE_BUTTON) { |
2995 win_attributes_->ia2_attributes.push_back(L"checkable:true"); | 2995 win_attributes_->ia2_attributes.push_back(L"checkable:true"); |
2996 } | 2996 } |
2997 | 2997 |
2998 // Expose live region attributes. | 2998 // Expose live region attributes. |
2999 StringAttributeToIA2(ui::AX_ATTR_LIVE_STATUS, "live"); | 2999 StringAttributeToIA2(ui::AX_ATTR_LIVE_STATUS, "live"); |
3000 StringAttributeToIA2(ui::AX_ATTR_LIVE_RELEVANT, "relevant"); | 3000 StringAttributeToIA2(ui::AX_ATTR_LIVE_RELEVANT, "relevant"); |
3001 BoolAttributeToIA2(ui::AX_ATTR_LIVE_ATOMIC, "atomic"); | 3001 BoolAttributeToIA2(ui::AX_ATTR_LIVE_ATOMIC, "atomic"); |
3002 BoolAttributeToIA2(ui::AX_ATTR_LIVE_BUSY, "busy"); | 3002 BoolAttributeToIA2(ui::AX_ATTR_LIVE_BUSY, "busy"); |
3003 | 3003 |
| 3004 // Expose aria-grabbed attributes. |
| 3005 BoolAttributeToIA2(ui::AX_ATTR_GRABBED, "grabbed"); |
| 3006 |
3004 // Expose container live region attributes. | 3007 // Expose container live region attributes. |
3005 StringAttributeToIA2(ui::AX_ATTR_CONTAINER_LIVE_STATUS, | 3008 StringAttributeToIA2(ui::AX_ATTR_CONTAINER_LIVE_STATUS, |
3006 "container-live"); | 3009 "container-live"); |
3007 StringAttributeToIA2(ui::AX_ATTR_CONTAINER_LIVE_RELEVANT, | 3010 StringAttributeToIA2(ui::AX_ATTR_CONTAINER_LIVE_RELEVANT, |
3008 "container-relevant"); | 3011 "container-relevant"); |
3009 BoolAttributeToIA2(ui::AX_ATTR_CONTAINER_LIVE_ATOMIC, | 3012 BoolAttributeToIA2(ui::AX_ATTR_CONTAINER_LIVE_ATOMIC, |
3010 "container-atomic"); | 3013 "container-atomic"); |
3011 BoolAttributeToIA2(ui::AX_ATTR_CONTAINER_LIVE_BUSY, | 3014 BoolAttributeToIA2(ui::AX_ATTR_CONTAINER_LIVE_BUSY, |
3012 "container-busy"); | 3015 "container-busy"); |
3013 | 3016 |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4037 ia2_role = ia_role; | 4040 ia2_role = ia_role; |
4038 | 4041 |
4039 win_attributes_->ia_role = ia_role; | 4042 win_attributes_->ia_role = ia_role; |
4040 win_attributes_->ia_state = ia_state; | 4043 win_attributes_->ia_state = ia_state; |
4041 win_attributes_->role_name = role_name; | 4044 win_attributes_->role_name = role_name; |
4042 win_attributes_->ia2_role = ia2_role; | 4045 win_attributes_->ia2_role = ia2_role; |
4043 win_attributes_->ia2_state = ia2_state; | 4046 win_attributes_->ia2_state = ia2_state; |
4044 } | 4047 } |
4045 | 4048 |
4046 } // namespace content | 4049 } // namespace content |
OLD | NEW |