diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-03 15:52:51 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-03 15:52:51 +0000 |
commit | a9b957352391084c9e7f6d3e07e8fe244b62f759 (patch) | |
tree | 6d39456dee05fac6e9fa0b6e2ce13d6e6b94929d /content/browser/accessibility/browser_accessibility.cc | |
parent | 2f3d5e9d754f4d107bd447eddb4830eb04ad030f (diff) | |
download | chromium_src-a9b957352391084c9e7f6d3e07e8fe244b62f759.zip chromium_src-a9b957352391084c9e7f6d3e07e8fe244b62f759.tar.gz chromium_src-a9b957352391084c9e7f6d3e07e8fe244b62f759.tar.bz2 |
Re-land: Add initial GTK web accessibility framework.
This enables Linux desktop assistive technology such as the Orca screen
reader to access the web contents. Builds on the same accessibility stack
used by Mac & Windows already.
This change works with Orca now, but it's minimal: all that works is getting
the correct feedback when you tab through focusable links and controls in
a webpage. Future changes will add the rest of the support.
BUG=24585
TEST=Run Chrome on desktop Linux with Orca turned on, tab through links.
TBR=darin
Review URL: https://chromiumcodereview.appspot.com/9839069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/accessibility/browser_accessibility.cc')
-rw-r--r-- | content/browser/accessibility/browser_accessibility.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/content/browser/accessibility/browser_accessibility.cc b/content/browser/accessibility/browser_accessibility.cc index 4f81569..fe96303 100644 --- a/content/browser/accessibility/browser_accessibility.cc +++ b/content/browser/accessibility/browser_accessibility.cc @@ -15,9 +15,11 @@ typedef WebAccessibility::FloatAttribute FloatAttribute; typedef WebAccessibility::IntAttribute IntAttribute; typedef WebAccessibility::StringAttribute StringAttribute; -#if (defined(OS_POSIX) && !defined(OS_MACOSX)) || defined(USE_AURA) -// There's no OS-specific implementation of BrowserAccessibilityManager -// on Unix, so just instantiate the base class. +#if !defined(OS_MACOSX) && \ + !(defined(OS_WIN) && !defined(USE_AURA)) && \ + !defined(TOOLKIT_GTK) +// We have subclassess of BrowserAccessibility on Mac, Linux/GTK, +// and non-Aura Win. For any other platform, instantiate the base class. // static BrowserAccessibility* BrowserAccessibility::Create() { return new BrowserAccessibility(); |