From b56705d35485122fe0b3c30fc69f0a47b87e8830 Mon Sep 17 00:00:00 2001 From: "dmazzoni@chromium.org" Date: Wed, 25 Aug 2010 14:20:31 +0000 Subject: 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 --- webkit/glue/webaccessibility.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'webkit/glue/webaccessibility.h') 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 attributes; std::vector children; + std::vector > html_attributes; }; } // namespace webkit_glue -- cgit v1.1