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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_win.h
diff --git a/content/browser/accessibility/browser_accessibility_win.h b/content/browser/accessibility/browser_accessibility_win.h
index 8c8f45f93c3551d3eeb009e7ec834e513b489f14..d7bd920a894f44898fe32125c3581db0446f49a4 100644
--- a/content/browser/accessibility/browser_accessibility_win.h
+++ b/content/browser/accessibility/browser_accessibility_win.h
@@ -886,10 +886,21 @@ BrowserAccessibilityWin
// or a menu list option with a parent of type menu list popup.
bool IsListBoxOptionOrMenuListOption();
- // Given an int list attribute containing the ids of related elements,
- // add a new IAccessibleRelation for this object with the given type name.
- void AddRelations(ui::AXIntListAttribute src_attr,
- const base::string16& iaccessiblerelation_type);
+ // For adding / removing IA2 relations.
+
+ void AddRelation(const base::string16& relation_type, int target_id);
+ void AddBidirectionalRelations(const base::string16& relation_type,
+ const base::string16& reverse_relation_type,
+ ui::AXIntListAttribute attribute);
+ // Clears all the forward relations from this object to any other object and
+ // the associated reverse relations on the other objects, but leaves any
+ // reverse relations on this object alone.
+ void ClearOwnRelations();
+ void RemoveBidirectionalRelationsOfType(
+ const base::string16& relation_type,
+ const base::string16& reverse_relation_type);
+ void RemoveTargetFromRelation(const base::string16& relation_type,
+ int target_id);
// Updates object attributes of IA2 with html attributes.
void UpdateRequiredAttributes();
« 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