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

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

Issue 2943243002: Forward BrowserAccessibility get_accState to AXPlatformNode. (Closed)
Patch Set: Created 3 years, 6 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 4695d7bfd0d1c5cdaf67519587a0fd8ebe46a6ae..6fd2264db44c7c6530315c9a29ff3a4416a9c5b1 100644
--- a/content/browser/accessibility/browser_accessibility_com_win.cc
+++ b/content/browser/accessibility/browser_accessibility_com_win.cc
@@ -631,23 +631,7 @@ STDMETHODIMP BrowserAccessibilityComWin::get_accState(VARIANT var_id,
if (!owner())
return E_FAIL;
- auto* manager = Manager();
- if (!manager)
- return E_FAIL;
-
- if (!state)
- return E_INVALIDARG;
-
- BrowserAccessibilityComWin* target = GetTargetFromChildID(var_id);
- if (!target)
- return E_INVALIDARG;
-
- state->vt = VT_I4;
- state->lVal = target->ia_state();
- if (manager->GetFocus() == owner())
- state->lVal |= STATE_SYSTEM_FOCUSED;
-
- return S_OK;
+ return AXPlatformNodeWin::get_accState(var_id, state);
dmazzoni 2017/06/26 17:18:24 We have duplicate code to compute ia_state now, wh
dougt 2017/06/27 04:49:51 Good call. I found that MSAAState() and ia_state(
}
bool BrowserAccessibilityComWin::IsRangeValueSupported() {

Powered by Google App Engine
This is Rietveld 408576698