Index: ui/accessibility/platform/ax_platform_node_win.cc |
diff --git a/ui/accessibility/platform/ax_platform_node_win.cc b/ui/accessibility/platform/ax_platform_node_win.cc |
index 9a3896bf6eb0eeed5d4fc66a97c1677f268b6e1b..8e980e88a7adca330deb71c9397cf1c81ebbc2c4 100644 |
--- a/ui/accessibility/platform/ax_platform_node_win.cc |
+++ b/ui/accessibility/platform/ax_platform_node_win.cc |
@@ -572,6 +572,15 @@ STDMETHODIMP AXPlatformNodeWin::get_attributes(BSTR* attributes) { |
return S_OK; |
} |
+STDMETHODIMP AXPlatformNodeWin::get_indexInParent(LONG* index_in_parent) { |
+ COM_OBJECT_VALIDATE_1_ARG(index_in_parent); |
+ *index_in_parent = GetIndexInParent(); |
+ if (*index_in_parent < 0) |
+ return E_FAIL; |
+ |
+ return S_OK; |
+} |
+ |
// |
// IAccessibleText |
// |