diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-25 14:20:31 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-25 14:20:31 +0000 |
commit | b56705d35485122fe0b3c30fc69f0a47b87e8830 (patch) | |
tree | 28da0d19a6d86ee652a2020c6d1a2b4977876f56 /webkit/glue/webaccessibility.h | |
parent | 66f4ccf18f9ba18e5f0d37cb6d86a134912bc71e (diff) | |
download | chromium_src-b56705d35485122fe0b3c30fc69f0a47b87e8830.zip chromium_src-b56705d35485122fe0b3c30fc69f0a47b87e8830.tar.gz chromium_src-b56705d35485122fe0b3c30fc69f0a47b87e8830.tar.bz2 |
Re-landing. Add html node info (tag name, attributes, and 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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webaccessibility.h')
-rw-r--r-- | webkit/glue/webaccessibility.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/glue/webaccessibility.h b/webkit/glue/webaccessibility.h index 305bc0ca..1836948 100644 --- a/webkit/glue/webaccessibility.h +++ b/webkit/glue/webaccessibility.h @@ -147,9 +147,20 @@ struct WebAccessibility { STATE_UNAVAILABLE }; + // Additional optional attributes that can be optionally attached to + // a node. enum Attribute { + // Doc attributes: only make sense when applied to the top-level + // Document node. + ATTR_DOC_URL, + ATTR_DOC_TITLE, + ATTR_DOC_MIMETYPE, + ATTR_DOC_DOCTYPE, + + // Attributes that could apply to any node. ATTR_ACTION, ATTR_DESCRIPTION, + ATTR_DISPLAY, ATTR_HELP, ATTR_HTML_TAG, ATTR_LINK_TARGET, @@ -180,6 +191,7 @@ struct WebAccessibility { WebKit::WebRect location; std::map<int32, string16> attributes; std::vector<WebAccessibility> children; + std::vector<std::pair<string16, string16> > html_attributes; }; } // namespace webkit_glue |