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

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 2854553002: Forward BrowserAccessibilityWin::get_accHelp to the platform node. (Closed)
Patch Set: Use macro instead of if test 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/accessibility/browser_accessibility_win.h" 5 #include "content/browser/accessibility/browser_accessibility_win.h"
6 6
7 #include <UIAutomationClient.h> 7 #include <UIAutomationClient.h>
8 #include <UIAutomationCoreApi.h> 8 #include <UIAutomationCoreApi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 } 621 }
622 622
623 return S_OK; 623 return S_OK;
624 } 624 }
625 625
626 STDMETHODIMP BrowserAccessibilityWin::get_accHelp(VARIANT var_id, BSTR* help) { 626 STDMETHODIMP BrowserAccessibilityWin::get_accHelp(VARIANT var_id, BSTR* help) {
627 WIN_ACCESSIBILITY_API_HISTOGRAM(UMA_API_GET_ACC_HELP); 627 WIN_ACCESSIBILITY_API_HISTOGRAM(UMA_API_GET_ACC_HELP);
628 if (!instance_active()) 628 if (!instance_active())
629 return E_FAIL; 629 return E_FAIL;
630 630
631 if (!help) 631 return GetPlatformNodeWin()->get_accHelp(var_id, help);
632 return E_INVALIDARG;
633
634 return S_FALSE;
635 } 632 }
636 633
637 STDMETHODIMP BrowserAccessibilityWin::get_accKeyboardShortcut(VARIANT var_id, 634 STDMETHODIMP BrowserAccessibilityWin::get_accKeyboardShortcut(VARIANT var_id,
638 BSTR* acc_key) { 635 BSTR* acc_key) {
639 WIN_ACCESSIBILITY_API_HISTOGRAM(UMA_API_GET_ACC_KEYBOARD_SHORTCUT); 636 WIN_ACCESSIBILITY_API_HISTOGRAM(UMA_API_GET_ACC_KEYBOARD_SHORTCUT);
640 if (!instance_active()) 637 if (!instance_active())
641 return E_FAIL; 638 return E_FAIL;
642 639
643 if (!acc_key) 640 if (!acc_key)
644 return E_INVALIDARG; 641 return E_INVALIDARG;
(...skipping 5027 matching lines...) Expand 10 before | Expand all | Expand 10 after
5672 return static_cast<BrowserAccessibilityWin*>(obj); 5669 return static_cast<BrowserAccessibilityWin*>(obj);
5673 } 5670 }
5674 5671
5675 const BrowserAccessibilityWin* 5672 const BrowserAccessibilityWin*
5676 ToBrowserAccessibilityWin(const BrowserAccessibility* obj) { 5673 ToBrowserAccessibilityWin(const BrowserAccessibility* obj) {
5677 DCHECK(!obj || obj->IsNative()); 5674 DCHECK(!obj || obj->IsNative());
5678 return static_cast<const BrowserAccessibilityWin*>(obj); 5675 return static_cast<const BrowserAccessibilityWin*>(obj);
5679 } 5676 }
5680 5677
5681 } // namespace content 5678 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698