diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-16 05:12:38 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-16 05:12:38 +0000 |
commit | 0d22979fda159619b1f4b6eab530e934d015bfe3 (patch) | |
tree | 36de98eac03f6b9c73f0270e237993e028b1ae6c /content/browser/accessibility | |
parent | 602eada5b11fe3ed10e9c9704cf38d410d79442a (diff) | |
download | chromium_src-0d22979fda159619b1f4b6eab530e934d015bfe3.zip chromium_src-0d22979fda159619b1f4b6eab530e934d015bfe3.tar.gz chromium_src-0d22979fda159619b1f4b6eab530e934d015bfe3.tar.bz2 |
Expose android.webkit.WebView as the web view's class name.
This makes it a little more obvious where the root of web
content is when using uiautomatorviewer. Doesn't currently
affect TalkBack.
Note that only the root of the accessibility tree has a
role of WebAXRoleRootWebArea. Iframes will have a role of
WebAXRoleWebArea and I don't think it'd make sense to
expose those as android.webkit.WebView.
BUG=none
NOTRY=true
Review URL: https://codereview.chromium.org/23731008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257359 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/accessibility')
-rw-r--r-- | content/browser/accessibility/browser_accessibility_android.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/accessibility/browser_accessibility_android.cc b/content/browser/accessibility/browser_accessibility_android.cc index 5b97317..f286c85 100644 --- a/content/browser/accessibility/browser_accessibility_android.cc +++ b/content/browser/accessibility/browser_accessibility_android.cc @@ -250,6 +250,9 @@ const char* BrowserAccessibilityAndroid::GetClassName() const { case ui::AX_ROLE_DIALOG: class_name = "android.app.Dialog"; break; + case ui::AX_ROLE_ROOT_WEB_AREA: + class_name = "android.webkit.WebView"; + break; default: class_name = "android.view.View"; break; |