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

Unified Diff: ui/accessibility/platform/ax_platform_node.cc

Issue 2981083002: Migrate BrowserAccessibility windows unique id handling to AXPlatformNodeWin. (Closed)
Patch Set: Android fix. I was hoping I could get rid of this. Someday though! Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/accessibility/platform/ax_platform_node.cc
diff --git a/ui/accessibility/platform/ax_platform_node.cc b/ui/accessibility/platform/ax_platform_node.cc
index 93a374abbacd9dd610e47b1aa8d1dd64803fbe17..8635ff03c5e5898751bfc43c57ce0466e49b00d6 100644
--- a/ui/accessibility/platform/ax_platform_node.cc
+++ b/ui/accessibility/platform/ax_platform_node.cc
@@ -35,6 +35,7 @@ void AXPlatformNode::Destroy() {
unique_id_ = 0;
}
+// static
AXPlatformNode* AXPlatformNode::GetFromUniqueId(int32_t unique_id) {
UniqueIdMap* unique_ids = g_unique_id_map.Pointer();
auto iter = unique_ids->find(unique_id);
@@ -44,4 +45,8 @@ AXPlatformNode* AXPlatformNode::GetFromUniqueId(int32_t unique_id) {
return nullptr;
}
+int32_t AXPlatformNode::unique_id() const {
+ return unique_id_;
+}
+
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698