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

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

Issue 2054393002: Implemented IAccessible2 reverse relations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed content_browsertests. Created 4 years, 5 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698