summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webaccessibility.h
diff options
context:
space:
mode:
authorklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 22:29:28 +0000
committerklink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-07 22:29:28 +0000
commitb45243c422ce9eddf818d25777fea0f7e7f94e85 (patch)
treece75b7f20e3718fea6f04d619099c53c7901ab55 /webkit/glue/webaccessibility.h
parenta24cb443103a83d16744b74808226aec6ff57aef (diff)
downloadchromium_src-b45243c422ce9eddf818d25777fea0f7e7f94e85.zip
chromium_src-b45243c422ce9eddf818d25777fea0f7e7f94e85.tar.gz
chromium_src-b45243c422ce9eddf818d25777fea0f7e7f94e85.tar.bz2
Adds support for an initial set of WAI-ARIA roles, needed to support screen readers in AJAX web applications (e.g. Gmail).
BUG=None TEST=None Review URL: http://codereview.chromium.org/149265 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20094 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webaccessibility.h')
-rw-r--r--webkit/glue/webaccessibility.h65
1 files changed, 37 insertions, 28 deletions
diff --git a/webkit/glue/webaccessibility.h b/webkit/glue/webaccessibility.h
index 538e612..967bf0c 100644
--- a/webkit/glue/webaccessibility.h
+++ b/webkit/glue/webaccessibility.h
@@ -59,47 +59,56 @@ class WebAccessibility {
DIRECTION_LASTCHILD
};
- // This defines an enumeration of the supported accessibility roles in our
- // Glue layer (used in GlueAccessibilityObject::Role). Any interface using
- // roles must provide a conversion to its own roles (see e.g.
- // BrowserAccessibility::get_accRole and BrowserAccessibility::MSAARole).
+ // This defines an enumeration (in alphabetical order) of the supported
+ // accessibility roles in our Glue layer (used in
+ // GlueAccessibilityObject::Role). Any interface using roles must provide a
+ // conversion to its own roles (see e.g. BrowserAccessibility::get_accRole and
+ // BrowserAccessibility::MSAARole).
enum Role {
- ROLE_PUSHBUTTON,
- ROLE_RADIOBUTTON,
+ ROLE_CELL,
ROLE_CHECKBUTTON,
- ROLE_SLIDER,
- ROLE_PAGETABLIST,
- ROLE_TEXT,
- ROLE_STATICTEXT,
- ROLE_OUTLINE,
+ ROLE_CLIENT,
ROLE_COLUMN,
- ROLE_ROW,
+ ROLE_COLUMNHEADER,
+ ROLE_GRAPHIC,
ROLE_GROUPING,
+ ROLE_LINK,
ROLE_LIST,
+ ROLE_LISTBOX,
+ ROLE_MENUITEM,
+ ROLE_MENUPOPUP,
+ ROLE_OUTLINE,
+ ROLE_PAGETABLIST,
+ ROLE_PROGRESSBAR,
+ ROLE_PUSHBUTTON,
+ ROLE_RADIOBUTTON,
+ ROLE_ROW,
+ ROLE_ROWHEADER,
+ ROLE_SLIDER,
+ ROLE_STATICTEXT,
ROLE_TABLE,
- ROLE_LINK,
- ROLE_GRAPHIC,
- ROLE_CLIENT
+ ROLE_TEXT
};
- // This defines an enumeration of the supported accessibility states in our
- // Glue layer (used in GlueAccessibilityObject::State). Any interface using
- // states must provide a conversion to its own states (see e.g.
- // BrowserAccessibility::get_accState and BrowserAccessibility::MSAAState).
+ // This defines an enumeration (in alphabetical order) of the supported
+ // accessibility states in our Glue layer (used in
+ // GlueAccessibilityObject::State). Any interface using states must provide a
+ // conversion to its own states (see e.g. BrowserAccessibility::get_accState
+ // and BrowserAccessibility::MSAAState).
enum State {
- STATE_LINKED,
+ STATE_CHECKED,
+ STATE_FOCUSABLE,
+ STATE_FOCUSED,
STATE_HOTTRACKED,
- STATE_UNAVAILABLE,
- STATE_READONLY,
- STATE_OFFSCREEN,
- STATE_MULTISELECTABLE,
- STATE_PROTECTED,
STATE_INDETERMINATE,
- STATE_CHECKED,
+ STATE_LINKED,
+ STATE_MULTISELECTABLE,
+ STATE_OFFSCREEN,
STATE_PRESSED,
- STATE_FOCUSED,
+ STATE_PROTECTED,
+ STATE_READONLY,
STATE_TRAVERSED,
- STATE_FOCUSABLE
+ STATE_UNAVAILABLE
};
// Parameters structure to hold a union of the possible accessibility function