summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webaccessibility.cc
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 19:10:00 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-03 19:10:00 +0000
commit02747d4e2fcd7211cf2fe0851d15d7c8a9341b54 (patch)
tree9f3db8a5df43293cb5ac1f8612d48273009ff641 /webkit/glue/webaccessibility.cc
parent604890c160d3f9383907b80585491fa282abbbd8 (diff)
downloadchromium_src-02747d4e2fcd7211cf2fe0851d15d7c8a9341b54.zip
chromium_src-02747d4e2fcd7211cf2fe0851d15d7c8a9341b54.tar.gz
chromium_src-02747d4e2fcd7211cf2fe0851d15d7c8a9341b54.tar.bz2
Add basic support for accessibility hit testing within web contents.
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
Diffstat (limited to 'webkit/glue/webaccessibility.cc')
-rw-r--r--webkit/glue/webaccessibility.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/webaccessibility.cc b/webkit/glue/webaccessibility.cc
index 70827c1..f405331 100644
--- a/webkit/glue/webaccessibility.cc
+++ b/webkit/glue/webaccessibility.cc
@@ -19,6 +19,7 @@
#include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h"
#include "third_party/WebKit/WebKit/chromium/public/WebNamedNodeMap.h"
#include "third_party/WebKit/WebKit/chromium/public/WebNode.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebSize.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
using WebKit::WebAccessibilityCache;
@@ -366,6 +367,10 @@ void WebAccessibility::Init(const WebKit::WebAccessibilityObject& src,
const WebKit::WebDocumentType& doctype = document.doctype();
if (!doctype.isNull())
attributes[ATTR_DOC_DOCTYPE] = doctype.name();
+
+ const gfx::Size& scroll_offset = document.frame()->scrollOffset();
+ attributes[ATTR_DOC_SCROLLX] = base::IntToString16(scroll_offset.width());
+ attributes[ATTR_DOC_SCROLLY] = base::IntToString16(scroll_offset.height());
}
// Add the source object to the cache and store its id.