| 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 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 | 879 |
| 880 // ID refers to the node ID in the current tree, not the globally unique ID. | 880 // ID refers to the node ID in the current tree, not the globally unique ID. |
| 881 // TODO(nektar): Could we use globally unique IDs everywhere? | 881 // TODO(nektar): Could we use globally unique IDs everywhere? |
| 882 // TODO(nektar): Rename this function to GetFromNodeID. | 882 // TODO(nektar): Rename this function to GetFromNodeID. |
| 883 BrowserAccessibilityWin* GetFromID(int32_t id) const; | 883 BrowserAccessibilityWin* GetFromID(int32_t id) const; |
| 884 | 884 |
| 885 // Returns true if this is a list box option with a parent of type list box, | 885 // Returns true if this is a list box option with a parent of type list box, |
| 886 // or a menu list option with a parent of type menu list popup. | 886 // or a menu list option with a parent of type menu list popup. |
| 887 bool IsListBoxOptionOrMenuListOption(); | 887 bool IsListBoxOptionOrMenuListOption(); |
| 888 | 888 |
| 889 // Given an int list attribute containing the ids of related elements, | 889 // For adding / removing IA2 relations. |
| 890 // add a new IAccessibleRelation for this object with the given type name. | 890 |
| 891 void AddRelations(ui::AXIntListAttribute src_attr, | 891 void AddRelation(const base::string16& relation_type, int target_id); |
| 892 const base::string16& iaccessiblerelation_type); | 892 void AddBidirectionalRelations(const base::string16& relation_type, |
| 893 const base::string16& reverse_relation_type, |
| 894 ui::AXIntListAttribute attribute); |
| 895 // Clears all the forward relations from this object to any other object and |
| 896 // the associated reverse relations on the other objects, but leaves any |
| 897 // reverse relations on this object alone. |
| 898 void ClearOwnRelations(); |
| 899 void RemoveBidirectionalRelationsOfType( |
| 900 const base::string16& relation_type, |
| 901 const base::string16& reverse_relation_type); |
| 902 void RemoveTargetFromRelation(const base::string16& relation_type, |
| 903 int target_id); |
| 893 | 904 |
| 894 // Updates object attributes of IA2 with html attributes. | 905 // Updates object attributes of IA2 with html attributes. |
| 895 void UpdateRequiredAttributes(); | 906 void UpdateRequiredAttributes(); |
| 896 | 907 |
| 897 // Fire a Windows-specific accessibility event notification on this node. | 908 // Fire a Windows-specific accessibility event notification on this node. |
| 898 void FireNativeEvent(LONG win_event_type) const; | 909 void FireNativeEvent(LONG win_event_type) const; |
| 899 | 910 |
| 900 struct WinAttributes { | 911 struct WinAttributes { |
| 901 WinAttributes(); | 912 WinAttributes(); |
| 902 ~WinAttributes(); | 913 ~WinAttributes(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 | 968 |
| 958 CONTENT_EXPORT BrowserAccessibilityWin* | 969 CONTENT_EXPORT BrowserAccessibilityWin* |
| 959 ToBrowserAccessibilityWin(BrowserAccessibility* obj); | 970 ToBrowserAccessibilityWin(BrowserAccessibility* obj); |
| 960 | 971 |
| 961 CONTENT_EXPORT const BrowserAccessibilityWin* | 972 CONTENT_EXPORT const BrowserAccessibilityWin* |
| 962 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); | 973 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); |
| 963 | 974 |
| 964 } // namespace content | 975 } // namespace content |
| 965 | 976 |
| 966 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 977 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |