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

Unified Diff: content/browser/accessibility/browser_accessibility_com_win.cc

Issue 2909853002: Forward BrowserAccessibility get_accRole to AXPlatformNode. (Closed)
Patch Set: Add default cases to switch stmt Created 3 years, 7 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: content/browser/accessibility/browser_accessibility_com_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_com_win.cc b/content/browser/accessibility/browser_accessibility_com_win.cc
index 5542a6a2d2b4db325681e939ae732f5591712117..addcf4fed6d9bead396eaa545b6259b8c9c87f3d 100644
--- a/content/browser/accessibility/browser_accessibility_com_win.cc
+++ b/content/browser/accessibility/browser_accessibility_com_win.cc
@@ -633,21 +633,7 @@ STDMETHODIMP BrowserAccessibilityComWin::get_accRole(VARIANT var_id,
if (!owner())
return E_FAIL;
- if (!role)
- return E_INVALIDARG;
-
- BrowserAccessibilityComWin* target = GetTargetFromChildID(var_id);
- if (!target)
- return E_INVALIDARG;
-
- if (!target->role_name().empty()) {
- role->vt = VT_BSTR;
- role->bstrVal = SysAllocString(target->role_name().c_str());
- } else {
- role->vt = VT_I4;
- role->lVal = target->ia_role();
- }
- return S_OK;
+ return AXPlatformNodeWin::get_accRole(var_id, role);
}
STDMETHODIMP BrowserAccessibilityComWin::get_accState(VARIANT var_id,
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_win.h » ('j') | ui/accessibility/platform/ax_platform_node_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698