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

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

Issue 2849063002: Forward BrowserAccessibilityWin::get_accKeyboardShortcut to the platform node (Closed)
Patch Set: remove SHORTCUT 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 bc2248263cbd405c3c8f2c449fb81649ea2fb8ba..d09b8f5e0dea6d59f1e3ca78490ff33fd6842cd8 100644
--- a/content/browser/accessibility/browser_accessibility_com_win.cc
+++ b/content/browser/accessibility/browser_accessibility_com_win.cc
@@ -595,18 +595,7 @@ STDMETHODIMP BrowserAccessibilityComWin::get_accKeyboardShortcut(
if (!owner())
return E_FAIL;
- if (!acc_key)
- return E_INVALIDARG;
-
- BrowserAccessibilityComWin* target = GetTargetFromChildID(var_id);
- if (!target)
- return E_INVALIDARG;
-
- if (target->HasStringAttribute(ui::AX_ATTR_KEY_SHORTCUTS)) {
- return target->GetStringAttributeAsBstr(ui::AX_ATTR_KEY_SHORTCUTS, acc_key);
- }
-
- return target->GetStringAttributeAsBstr(ui::AX_ATTR_SHORTCUT, acc_key);
+ return AXPlatformNodeWin::get_accKeyboardShortcut(var_id, acc_key);
}
STDMETHODIMP BrowserAccessibilityComWin::get_accName(VARIANT var_id,

Powered by Google App Engine
This is Rietveld 408576698