summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/modules/accessibility/AXObject.h
diff options
context:
space:
mode:
authordmazzoni <dmazzoni@chromium.org>2016-03-18 01:28:41 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-18 08:30:03 +0000
commit30fc95f3dd93562d7be852205c49bd49e793d84c (patch)
tree242517f8732baabbf70496252d52d69dcfff0b61 /third_party/WebKit/Source/modules/accessibility/AXObject.h
parent135b2ed3347a44635ae459396b4f7ab5c49849d9 (diff)
downloadchromium_src-30fc95f3dd93562d7be852205c49bd49e793d84c.zip
chromium_src-30fc95f3dd93562d7be852205c49bd49e793d84c.tar.gz
chromium_src-30fc95f3dd93562d7be852205c49bd49e793d84c.tar.bz2
Fix support for accessible action verbs and performing the default action.
Accessible objects support a "default action" if something happens when you click on them. On some platforms we return a localized string like "press" or "uncheck" indicating what action will occur. This change fixes a few cases that weren't correct: 1. A few objects had actions but no verb - fix this by adding a verb for pop-up buttons ("open") and a default verb when nothing else applies ("click"). 2. Ensure we always return an action verb when an object has a default action, and never otherwise. 3. Fix detection of click event listeners - we were using an API that only returned some; use the right API to get all click-and-mouse-related event listeners, but exclude the HTML BODY element because lots of pages have click listeners there and they're rarely what we want. 4. The Windows API accDoDefaultAction should return an error if called on an object with no default action. BUG=595222 Review URL: https://codereview.chromium.org/1809573003 Cr-Commit-Position: refs/heads/master@{#381911}
Diffstat (limited to 'third_party/WebKit/Source/modules/accessibility/AXObject.h')
-rw-r--r--third_party/WebKit/Source/modules/accessibility/AXObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h
index bec65aa..e45fb1af 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -728,7 +728,7 @@ public:
virtual void wordBoundaries(Vector<AXRange>& words) const { }
// Properties of interactive elements.
- virtual String actionVerb() const;
+ String actionVerb() const;
virtual AccessibilityButtonState checkboxOrRadioValue() const;
virtual InvalidState getInvalidState() const { return InvalidStateUndefined; }
// Only used when invalidState() returns InvalidStateOther.