| 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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <oleacc.h> | 10 #include <oleacc.h> |
| (...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 bool IsListBoxOptionOrMenuListOption(); | 881 bool IsListBoxOptionOrMenuListOption(); |
| 882 | 882 |
| 883 // Given an int list attribute containing the ids of related elements, | 883 // Given an int list attribute containing the ids of related elements, |
| 884 // add a new IAccessibleRelation for this object with the given type name. | 884 // add a new IAccessibleRelation for this object with the given type name. |
| 885 void AddRelations(ui::AXIntListAttribute src_attr, | 885 void AddRelations(ui::AXIntListAttribute src_attr, |
| 886 const base::string16& iaccessiblerelation_type); | 886 const base::string16& iaccessiblerelation_type); |
| 887 | 887 |
| 888 // Updates object attributes of IA2 with html attributes. | 888 // Updates object attributes of IA2 with html attributes. |
| 889 void UpdateRequiredAttributes(); | 889 void UpdateRequiredAttributes(); |
| 890 | 890 |
| 891 // Updates the IA2 text style attributes. | 891 // Fire a Windows-specific accessibility event notification on this node. |
| 892 void UpdateTextAttributes(); | 892 void FireNativeEvent(LONG win_event_type) const; |
| 893 | 893 |
| 894 struct WinAttributes { | 894 struct WinAttributes { |
| 895 WinAttributes(); | 895 WinAttributes(); |
| 896 ~WinAttributes(); | 896 ~WinAttributes(); |
| 897 | 897 |
| 898 // IAccessible role and state. | 898 // IAccessible role and state. |
| 899 int32_t ia_role; | 899 int32_t ia_role; |
| 900 int32_t ia_state; | 900 int32_t ia_state; |
| 901 base::string16 role_name; | 901 base::string16 role_name; |
| 902 | 902 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 | 949 |
| 950 CONTENT_EXPORT BrowserAccessibilityWin* | 950 CONTENT_EXPORT BrowserAccessibilityWin* |
| 951 ToBrowserAccessibilityWin(BrowserAccessibility* obj); | 951 ToBrowserAccessibilityWin(BrowserAccessibility* obj); |
| 952 | 952 |
| 953 CONTENT_EXPORT const BrowserAccessibilityWin* | 953 CONTENT_EXPORT const BrowserAccessibilityWin* |
| 954 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); | 954 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); |
| 955 | 955 |
| 956 } // namespace content | 956 } // namespace content |
| 957 | 957 |
| 958 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 958 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |