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

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

Issue 1019663002: Implement AXPlatformNodeWin::get_indexInParent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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_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
//
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_win.h ('k') | ui/accessibility/platform/ax_platform_node_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698