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

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: Created 4 years, 6 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
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 IA2 relations.
890 // add a new IAccessibleRelation for this object with the given type name. 890 void AddRelation(const base::string16& relation_type, int target_id);
891 void AddRelations(ui::AXIntListAttribute src_attr, 891 void AddBidirectionalRelations(const base::string16& relation_type,
892 const base::string16& iaccessiblerelation_type); 892 const base::string16& reverse_relation_type,
893 ui::AXIntListAttribute attribute);
893 894
894 // Updates object attributes of IA2 with html attributes. 895 // Updates object attributes of IA2 with html attributes.
895 void UpdateRequiredAttributes(); 896 void UpdateRequiredAttributes();
896 897
897 // Fire a Windows-specific accessibility event notification on this node. 898 // Fire a Windows-specific accessibility event notification on this node.
898 void FireNativeEvent(LONG win_event_type) const; 899 void FireNativeEvent(LONG win_event_type) const;
899 900
900 struct WinAttributes { 901 struct WinAttributes {
901 WinAttributes(); 902 WinAttributes();
902 ~WinAttributes(); 903 ~WinAttributes();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 958
958 CONTENT_EXPORT BrowserAccessibilityWin* 959 CONTENT_EXPORT BrowserAccessibilityWin*
959 ToBrowserAccessibilityWin(BrowserAccessibility* obj); 960 ToBrowserAccessibilityWin(BrowserAccessibility* obj);
960 961
961 CONTENT_EXPORT const BrowserAccessibilityWin* 962 CONTENT_EXPORT const BrowserAccessibilityWin*
962 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); 963 ToBrowserAccessibilityWin(const BrowserAccessibility* obj);
963 964
964 } // namespace content 965 } // namespace content
965 966
966 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 967 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698