summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webaccessibility.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge 82256 - Fix handling of a case where an AccessibilityObject is listed ↵cevans@chromium.org2011-04-231-1/+12
| | | | | | | | | | | | | | as a child multiple times. BUG=79726 TEST=browser_tests:RendererAccessibilityBrowserTest.CrossPlatformDuplicateChildrenAccessibility Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82076 Review URL: http://codereview.chromium.org/6873063 TBR=ctguil@chromium.org Review URL: http://codereview.chromium.org/6899054 git-svn-id: svn://svn.chromium.org/chrome/branches/742/src@82780 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 82076 - Fix handling of a case where an AccessibilityObject is listed ↵andybons@chromium.org2011-04-191-12/+1
| | | | | | | | | as a child multiple times.BUG=79726TEST=browser_tests:RendererAccessibilityBrowserTest.CrossPlatformDuplicateChildrenAccessibilityReview URL: http://codereview.chromium.org/6873063 TBR=ctguil@chromium.org Review URL: http://codereview.chromium.org/6880029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82085 0039d316-1c4b-4281-b951-d872f2087c98
* Fix handling of a case where an AccessibilityObject is listed as a child ↵ctguil@chromium.org2011-04-191-1/+12
| | | | | | | | | | multiple times. BUG=79726 TEST=browser_tests:RendererAccessibilityBrowserTest.CrossPlatformDuplicateChildrenAccessibility Review URL: http://codereview.chromium.org/6873063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82076 0039d316-1c4b-4281-b951-d872f2087c98
* Retrieve the accessibility tree from an iframe's document in the renderer,dmazzoni@chromium.org2011-03-251-2/+8
| | | | | | | | | | | | | so that documents with iframes can be fully accessible. Depends on webkit patch: http://bugs.webkit.org/show_bug.cgi?id=56984 BUG=57727 TEST=Adds new browser test. Review URL: http://codereview.chromium.org/6731020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79443 0039d316-1c4b-4281-b951-d872f2087c98
* Move a bunch of renderer->browser messages to content.jam@chromium.org2011-03-231-0/+1
| | | | | | | TBR=tsepez Review URL: http://codereview.chromium.org/6721021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79152 0039d316-1c4b-4281-b951-d872f2087c98
* Fix handling of case where the same AccessibilityObject appears as admazzoni@chromium.org2011-03-141-6/+6
| | | | | | | | | | | | child of more than one parent. Add some additional DCHECKs so that such a problem would be caught even earlier if they were to reoccur. BUG=75496 TEST=Addes new browser test CrossPlatformMultipleInheritanceAccessibility2 Review URL: http://codereview.chromium.org/6683010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78025 0039d316-1c4b-4281-b951-d872f2087c98
* Browser accessibility improvements so that screen readers can access moredmazzoni@chromium.org2011-03-081-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | complicated webpages without problems. First, WebAccessibility now works around a "multiple inheritance problem" in WebCore::AccessibilityObject where the same node appears as a child of multiple parents. For example, a table cell appears as a child of both a row and a column. This is solved by having each WebAccessibility parent check whether the child lists itself as an ancestor. If not, it notes the child's id only in a separate vector, so each child appears fully only once. Second, BrowserAccessibility now has internal reference counting, which allows BrowserAccessibilityManager to update any subtree while maximally reusing as many objects as possible. This fixes many screen reader interaction problems! All of this new functionality is tested with new cross-platform tests. BUG=67192 BUG=67620 TEST=Adds new unit tests and a browser test. Review URL: http://codereview.chromium.org/6625042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77316 0039d316-1c4b-4281-b951-d872f2087c98
* Quick fix for problems with editable text field accessibility by not sendingdmazzoni@chromium.org2011-02-181-0/+6
| | | | | | | | | | | | children of text fields from the renderer to the browser. The child containing the text appeared to be redundant anyway. BUG=none TEST=updated unit test, manual testing with screen readers Review URL: http://codereview.chromium.org/6469038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75416 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-14/+14
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71586 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ATTR_LINK_TARGET to ATTR_URL and assign it within ↵ctguil@chromium.org2010-12-201-0/+2
| | | | | | | | webaccessibility.BUG=noneTEST=none Review URL: http://codereview.chromium.org/5698002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69751 0039d316-1c4b-4281-b951-d872f2087c98
* Only send child node updates on load and children changed notifications.ctguil@chromium.org2010-11-051-14/+18
| | | | | | | | | BUG=none TEST=interactive_ui_tests:AccessibilityWinBrowserTest.* Review URL: http://codereview.chromium.org/4272002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65170 0039d316-1c4b-4281-b951-d872f2087c98
* Add basic support for accessibility hit testing within web contents.ctguil@chromium.org2010-11-031-0/+5
| | | | | | | | | BUG=59890 TEST=Manual. Inspect32. Review URL: http://codereview.chromium.org/4292001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64943 0039d316-1c4b-4281-b951-d872f2087c98
* Make the selection start and end attributes of an html input controldmazzoni@chromium.org2010-10-011-2/+19
| | | | | | | | | | | | accessible, implement IAccessibleText methods to retrieve this info, and post a notification when the cursor moves within a text field. BUG=none TEST=Added new test to renderer_accessibility_browsertest Review URL: http://codereview.chromium.org/3389037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61216 0039d316-1c4b-4281-b951-d872f2087c98
* Support additional webkit accessibility notifications and states. ctguil@chromium.org2010-09-251-1/+20
| | | | | | | | | | | | | | | | 1. Update WebAccessibility::ConvertState to function similarly to WebCore's AccessibleBase::get_accState. 2. Use WebKit's load complete notification to send the renderer's tree to the browser. We enable accessibility on the renderer now instead of requesting a tree. 3. Use WebKit's focused ui element notification to send renderer focus events to the browser. BUG=13291 BUG=38106 TEST=interactive_ui_tests:AccessibilityWinBrowserTest.TestNotificationActiveDescendantChanged TEST=interactive_ui_tests:AccessibilityWinBrowserTest.TestNotificationFocusChanged Review URL: http://codereview.chromium.org/3380017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60569 0039d316-1c4b-4281-b951-d872f2087c98
* Store lower case tag names within web accessibility.ctguil@chromium.org2010-09-231-1/+5
| | | | | | | | | | | | This is similar to the behavior of firefox. BUG=none TEST=browser_tests:RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree TEST=interactive_ui_tests:AccessibilityWinBrowserTest.* Review URL: http://codereview.chromium.org/3435019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60259 0039d316-1c4b-4281-b951-d872f2087c98
* Set name of document accessibility nodes to document title. ctguil@chromium.org2010-09-211-0/+2
| | | | | | | | | | BUG=36169 TEST=browser_tests:RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree TEST=interactive_ui_tests:AccessibilityWinBrowserTest.TestNotificationActiveDescendantChanged Review URL: http://codereview.chromium.org/3448016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60120 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 60088 - Set name of document accessibility nodes to document title.rdsmith@chromium.org2010-09-211-2/+0
| | | | | | | | | | | | BUG=36169 TEST=browser_tests:RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree Review URL: http://codereview.chromium.org/3448016 TBR=ctguil@chromium.org Review URL: http://codereview.chromium.org/3402020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60092 0039d316-1c4b-4281-b951-d872f2087c98
* Set name of document accessibility nodes to document title.ctguil@chromium.org2010-09-211-0/+2
| | | | | | | | | BUG=36169 TEST=browser_tests:RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree Review URL: http://codereview.chromium.org/3448016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60088 0039d316-1c4b-4281-b951-d872f2087c98
* Don't add invalid webkit accessibility objects to the renderer accessibility ↵ctguil@chromium.org2010-09-161-2/+8
| | | | | | | | | | | | tree. BUG=55740 TEST=For M7, verify renderer_crash.html from bug doesn't crash the renderer. Review URL: http://codereview.chromium.org/3408008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59620 0039d316-1c4b-4281-b951-d872f2087c98
* Add html node info (tag name, attributes, and computed display) and documentdmazzoni@chromium.org2010-08-301-0/+37
| | | | | | | | | | | | | | info (url, title, mimetype, doctype) to WebAccessibility. BUG=none TEST=Modified unit test: RenderMessagesUnittest.WebAccessibility TEST=Added new browser test: RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57188 Review URL: http://codereview.chromium.org/3013035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57866 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move code from headers into cc files.erg@google.com2010-08-271-0/+3
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3219002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57732 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57327 - Re-landing. Add html node info (tag name, attributes, and ↵dmazzoni@chromium.org2010-08-251-34/+0
| | | | | | | | | | | | | | | | computed display) and document info (url, title, mimetype, doctype) to WebAccessibility. BUG=none TEST=Modified unit test: RenderMessagesUnittest.WebAccessibility Review URL: http://codereview.chromium.org/3013035 TBR=dmazzoni@chromium.org Review URL: http://codereview.chromium.org/3132040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57330 0039d316-1c4b-4281-b951-d872f2087c98
* Re-landing. Add html node info (tag name, attributes, and computed display)dmazzoni@chromium.org2010-08-251-0/+34
| | | | | | | | | | | and document info (url, title, mimetype, doctype) to WebAccessibility. BUG=none TEST=Modified unit test: RenderMessagesUnittest.WebAccessibility Review URL: http://codereview.chromium.org/3013035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57327 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57188 - Add html node info (tag name, attributes, and computed ↵dmazzoni@chromium.org2010-08-241-34/+0
| | | | | | | | | | | | | | | | | display) and document info (url, title, mimetype, doctype) to WebAccessibility. BUG=none TEST=Modified unit test: RenderMessagesUnittest.WebAccessibility TEST=Added new browser test: RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree Review URL: http://codereview.chromium.org/3013035 TBR=dmazzoni@chromium.org Review URL: http://codereview.chromium.org/3173040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57193 0039d316-1c4b-4281-b951-d872f2087c98
* Add html node info (tag name, attributes, and computed display) and documentdmazzoni@chromium.org2010-08-241-0/+34
| | | | | | | | | | | | info (url, title, mimetype, doctype) to WebAccessibility. BUG=none TEST=Modified unit test: RenderMessagesUnittest.WebAccessibility TEST=Added new browser test: RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree Review URL: http://codereview.chromium.org/3013035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57188 0039d316-1c4b-4281-b951-d872f2087c98
* Windows accessibility improvements: 1. All WebKit roles are now passed to thedmazzoni@chromium.org2010-05-211-39/+162
| | | | | | | | | | | | | | | | | | browser and then converted to MSAA roles - this is both because the logic needs to be more complicated, and so we can support Mac accessibility, too. 2. The serializable object used to pass accessibility info from the renderer to the browser now uses a map for uncommon attributes, rather than having a bunch of fields that are almost always empty. 3. Handles the accSelect method with TAKE_FOCUS, allowing assistive technology to set focus to a particular control. 4. Implements several other IAccessible2 interfaces. BUG=25564 BUG=13291 TEST=None Review URL: http://codereview.chromium.org/2121004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47922 0039d316-1c4b-4281-b951-d872f2087c98
* Reimplement accessibility of web content by caching the entire dmazzoni@chromium.org2010-05-111-208/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | accessibility tree in the browser process. Adds new RPCs for a browser tab to request accessibility info from a renderer; the renderer responds with a complete tree of accessibility metadata for the entire DOM, which is then cached in the RenderWidgetHostView. This part is cross-platform and will help with accessibility on both Windows and Mac OS X. For Windows, MSAA support for web content has been rewritten to use this new cache. Tested in JAWS and NVDA screen readers. Using Chrome with a screen reader is now fast and stable, unlike the previous implementation. However, note that most advanced functionality is still not supported, and much work remains to make Chrome work well with a screen reader. This is a necessary step to improve stability first. BUG=25564 BUG=13291 TEST=See http://codereview.chromium.org/1806001 Review URL: http://codereview.chromium.org/1637018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46916 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 46842 - Reimplement accessibility of web content by caching the entire dmazzoni@chromium.org2010-05-101-45/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | accessibility tree in the browser process. Adds new RPCs for a browser tab to request accessibility info from a renderer; the renderer responds with a complete tree of accessibility metadata for the entire DOM, which is then cached in the RenderWidgetHostView. This part is crossplatform and will help with accessibility on both Windows and Mac OS X. For Windows, MSAA support for web content has been rewritten to use this new cache. Tested in JAWS and NVDA screen readers. Using Chrome with a screen reader is now fast and stable, unlike the previous implementation. However, note that most advanced functionality is still not supported, and much work remains to make Chrome work well with a screen reader. This is a necessary step to improve stability first. BUG=25564 BUG=13291 TEST=See http://codereview.chromium.org/1806001 Review URL: http://codereview.chromium.org/1637018 TBR=dmazzoni@chromium.org Review URL: http://codereview.chromium.org/1989009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46847 0039d316-1c4b-4281-b951-d872f2087c98
* Reimplement accessibility of web content by caching the entire dmazzoni@chromium.org2010-05-101-208/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | accessibility tree in the browser process. Adds new RPCs for a browser tab to request accessibility info from a renderer; the renderer responds with a complete tree of accessibility metadata for the entire DOM, which is then cached in the RenderWidgetHostView. This part is cross-platform and will help with accessibility on both Windows and Mac OS X. For Windows, MSAA support for web content has been rewritten to use this new cache. Tested in JAWS and NVDA screen readers. Using Chrome with a screen reader is now fast and stable, unlike the previous implementation. However, note that most advanced functionality is still not supported, and much work remains to make Chrome work well with a screen reader. This is a necessary step to improve stability first. BUG=25564 BUG=13291 TEST=See http://codereview.chromium.org/1806001 Review URL: http://codereview.chromium.org/1637018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46842 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 46567 - Reimplement accessibility of web content by caching the entire zork@chromium.org2010-05-071-45/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | accessibility tree in the browser process. Adds new RPCs for a browser tab to request accessibility info from a renderer; the renderer responds with a complete tree of accessibility metadata for the entire DOM, which is then cached in the RenderWidgetHostView. This part is crossplatform and will help with accessibility on both Windows and Mac OS X. For Windows, MSAA support for web content has been rewritten to use this new cache. Tested in JAWS and NVDA screen readers. Using Chrome with a screen reader is now fast and stable, unlike the previous implementation. However, note that most advanced functionality is still not supported, and much work remains to make Chrome work well with a screen reader. This is a necessary step to improve stability first. BUG=25564 BUG=13291 TEST=See http://codereview.chromium.org/1806001 Review URL: http://codereview.chromium.org/1637018 TBR=dmazzoni@chromium.org Review URL: http://codereview.chromium.org/2031004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46642 0039d316-1c4b-4281-b951-d872f2087c98
* Reimplement accessibility of web content by caching the entire dmazzoni@chromium.org2010-05-061-208/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | accessibility tree in the browser process. Adds new RPCs for a browser tab to request accessibility info from a renderer; the renderer responds with a complete tree of accessibility metadata for the entire DOM, which is then cached in the RenderWidgetHostView. This part is cross-platform and will help with accessibility on both Windows and Mac OS X. For Windows, MSAA support for web content has been rewritten to use this new cache. Tested in JAWS and NVDA screen readers. Using Chrome with a screen reader is now fast and stable, unlike the previous implementation. However, note that most advanced functionality is still not supported, and much work remains to make Chrome work well with a screen reader. This is a necessary step to improve stability first. BUG=25564 BUG=13291 TEST=See http://codereview.chromium.org/1806001 Review URL: http://codereview.chromium.org/1637018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46567 0039d316-1c4b-4281-b951-d872f2087c98
* Landing Chris Guillory CL.jcampan@chromium.org2010-02-241-24/+24
| | | | | | | | | | | | See original review at: http://codereview.chromium.org/626014/show BUG=None TEST=None Review URL: http://codereview.chromium.org/657020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39828 0039d316-1c4b-4281-b951-d872f2087c98
* Roll Webkit to 53220 and fix compilation error due to renamed API.atwilson@chromium.org2010-01-141-1/+1
| | | | | | | TBR=yaar Review URL: http://codereview.chromium.org/549046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36229 0039d316-1c4b-4281-b951-d872f2087c98
* Upstreaming WebKit.gypyaar@chromium.org2009-11-121-6/+6
| | | | | | | | | | | | This mega patch contains a few simple but tightly dependent changes: 1. Deletion of webkit/api/WebKit.gyp. The file now lives in webkit.org. 2. Rename of webkit/webkit.gyp to webkit/webkit_glue.gyp. Having two webkit.gyp was a source of developer confusion. 3. Gyp dependencies are updated across chromium to point at the upstream WebKit.gyp and the renamed webkit_glue.gyp. 4. Some 200+ files include paths fixed to point to third_party/WebKit/WebKit/chromium instead of webkit/api. The later will be deleted in a subsequent patch. Review URL: http://codereview.chromium.org/387020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31749 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebAccessibilityControllerImpl.dglazkov@chromium.org2009-11-041-0/+340
Removes accessibility-related WebCore dependencies from glue. R=darin TEST=none BUG=24616 Review URL: http://codereview.chromium.org/348063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30986 0039d316-1c4b-4281-b951-d872f2087c98