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

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

Issue 2909853002: Forward BrowserAccessibility get_accRole to AXPlatformNode. (Closed)
Patch Set: some of dmazzoni's comments addressed 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
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bc2248263cbd405c3c8f2c449fb81649ea2fb8ba..69a6ed8cba903318b2e5d59c3b1fe60069d41e9e 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698