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

Unified Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 9958139: Add support for UIA accessibility interfaces like IAccessibleEx and IRawElementProviderSimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « base/win/accessibility_misc_utils.cc ('k') | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_win.h
===================================================================
--- content/browser/accessibility/browser_accessibility_win.h (revision 130412)
+++ content/browser/accessibility/browser_accessibility_win.h (working copy)
@@ -9,6 +9,7 @@
#include <atlbase.h>
#include <atlcom.h>
#include <oleacc.h>
+#include <UIAutomationCore.h>
#include <vector>
@@ -54,7 +55,9 @@
public IServiceProvider,
public ISimpleDOMDocument,
public ISimpleDOMNode,
- public ISimpleDOMText {
+ public ISimpleDOMText,
+ public IAccessibleEx,
+ public IRawElementProviderSimple {
public:
BEGIN_COM_MAP(BrowserAccessibilityWin)
COM_INTERFACE_ENTRY2(IDispatch, IAccessible2)
@@ -72,6 +75,8 @@
COM_INTERFACE_ENTRY(ISimpleDOMDocument)
COM_INTERFACE_ENTRY(ISimpleDOMNode)
COM_INTERFACE_ENTRY(ISimpleDOMText)
+ COM_INTERFACE_ENTRY(IAccessibleEx)
+ COM_INTERFACE_ENTRY(IRawElementProviderSimple)
END_COM_MAP()
// Represents a non-static text node in IAccessibleHypertext. This character
@@ -92,7 +97,7 @@
// BrowserAccessibility methods.
//
CONTENT_EXPORT virtual void PreInitialize();
-CONTENT_EXPORT virtual void PostInitialize();
+ CONTENT_EXPORT virtual void PostInitialize();
CONTENT_EXPORT virtual void NativeAddReference();
CONTENT_EXPORT virtual void NativeReleaseReference();
@@ -218,7 +223,9 @@
LONG* similar_items_in_group,
LONG* position_in_group);
- // IAccessible2 methods not implemented.
+ //
+ // IAccessibleEx methods not implemented.
+ //
CONTENT_EXPORT STDMETHODIMP get_extendedRole(BSTR* extended_role) {
return E_NOTIMPL;
}
@@ -247,7 +254,6 @@
//
// IAccessibleImage methods.
//
-
CONTENT_EXPORT STDMETHODIMP get_description(BSTR* description);
CONTENT_EXPORT STDMETHODIMP get_imagePosition(
@@ -692,7 +698,49 @@
CONTENT_EXPORT STDMETHODIMP QueryService(REFGUID guidService, REFIID riid,
void** object);
+ // IAccessibleEx methods not implemented.
+ CONTENT_EXPORT STDMETHODIMP GetObjectForChild(long child_id,
+ IAccessibleEx** ret) {
+ return E_NOTIMPL;
+ }
+
+ CONTENT_EXPORT STDMETHODIMP GetIAccessiblePair(IAccessible** acc,
+ long* child_id) {
+ return E_NOTIMPL;
+ }
+
+ CONTENT_EXPORT STDMETHODIMP GetRuntimeId(SAFEARRAY** runtime_id) {
+ return E_NOTIMPL;
+ }
+
+ CONTENT_EXPORT STDMETHODIMP ConvertReturnedElement(
+ IRawElementProviderSimple* element,
+ IAccessibleEx** acc) {
+ return E_NOTIMPL;
+ }
+
//
+ // IRawElementProviderSimple methods.
+ //
+ // The GetPatternProvider/GetPropertyValue methods need to be implemented for
+ // the on-screen keyboard to show up in Windows 8 metro.
+ CONTENT_EXPORT STDMETHODIMP GetPatternProvider(PATTERNID id,
+ IUnknown** provider);
+ CONTENT_EXPORT STDMETHODIMP GetPropertyValue(PROPERTYID id, VARIANT* ret);
+
+ //
+ // IRawElementProviderSimple methods not implemented
+ //
+ CONTENT_EXPORT STDMETHODIMP get_ProviderOptions(enum ProviderOptions* ret) {
+ return E_NOTIMPL;
+ }
+
+ CONTENT_EXPORT STDMETHODIMP get_HostRawElementProvider(
+ IRawElementProviderSimple** provider) {
+ return E_NOTIMPL;
+ }
+
+ //
// CComObjectRootEx methods.
//
« no previous file with comments | « base/win/accessibility_misc_utils.cc ('k') | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698