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

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

Issue 2849063002: Forward BrowserAccessibilityWin::get_accKeyboardShortcut to the platform node (Closed)
Patch Set: Add has check to ensure we don't override key shortcut 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 c20cff89abbc1eafc6f79e2c4764f8b55c94233c..38f3f67b4b6429fd7f4c24af451980d5e0904286 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,
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698