diff options
author | klink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 20:12:25 +0000 |
---|---|---|
committer | klink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-20 20:12:25 +0000 |
commit | 6a983b4e4d28c1e3841f39febeb6a9dd681b53b3 (patch) | |
tree | a4b5d6a01066c026338d071076db9ff7dae210f3 /chrome/browser/browser_accessibility.h | |
parent | fe5a8a4ff6f5758f8dbf7e6e9578df97fb8633db (diff) | |
download | chromium_src-6a983b4e4d28c1e3841f39febeb6a9dd681b53b3.zip chromium_src-6a983b4e4d28c1e3841f39febeb6a9dd681b53b3.tar.gz chromium_src-6a983b4e4d28c1e3841f39febeb6a9dd681b53b3.tar.bz2 |
Removes all use of COM and dependencies on Windows-specific classes (including the use of AccessibleBase and AccessibleDocument) in the glue accessibility implementation.Introduces the GlueAccessibilityObject, which serves as a platform-independent wrapper directly around WebKit's AccessibilityObject (also platoform-independent).Updates naming/comments to reflect the independence of IAccessible both in glue and (where appropriate) in the browser-side accessibility.
Review URL: http://codereview.chromium.org/46013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_accessibility.h')
-rw-r--r-- | chrome/browser/browser_accessibility.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/chrome/browser/browser_accessibility.h b/chrome/browser/browser_accessibility.h index 9582297..8b56662 100644 --- a/chrome/browser/browser_accessibility.h +++ b/chrome/browser/browser_accessibility.h @@ -11,8 +11,9 @@ #include <oleacc.h> #include "base/basictypes.h" +#include "webkit/glue/webaccessibility.h" -struct AccessibilityOutParams; +using webkit_glue::WebAccessibility; //////////////////////////////////////////////////////////////////////////////// // @@ -133,7 +134,7 @@ class ATL_NO_VTABLE BrowserAccessibility // BrowserAccessibilityManager. // Creates an instance of BrowserAccessibility, initializes it and sets the - // |iaccessible_id| and |parent_id|. + // [iaccessible_id] and [parent_id]. STDMETHODIMP CreateInstance(REFIID iid, int iaccessible_id, void** interface_ptr); @@ -146,9 +147,17 @@ class ATL_NO_VTABLE BrowserAccessibility LONG input1, LONG input2); // Accessors. - const AccessibilityOutParams& response(); + const WebAccessibility::OutParams& response(); HWND parent_hwnd(); + // Returns a conversion from the BrowserAccessibilityRole (as defined in + // webkit/glue/webaccessibility.h) to an MSAA role. + long MSAARole(long browser_accessibility_role); + + // Returns a conversion from the BrowserAccessibilityState (as defined in + // webkit/glue/webaccessibility.h) to MSAA states set. + long MSAAState(long browser_accessibility_state); + // Id to uniquely distinguish this instance in the render-side caching, // mapping it to the correct IAccessible on that side. Initialized to -1. int iaccessible_id_; |