summaryrefslogtreecommitdiffstats
path: root/views/controls/single_split_view.cc
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-16 00:24:20 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-16 00:24:20 +0000
commit00854125164910b0bced16bcb67fdf583b9d28c0 (patch)
tree65e4d7738977aa66ae5ef1122b74ca1f6e56aa3f /views/controls/single_split_view.cc
parentf5205419c04244f460891b8ff8e30d3793ffa507 (diff)
downloadchromium_src-00854125164910b0bced16bcb67fdf583b9d28c0.zip
chromium_src-00854125164910b0bced16bcb67fdf583b9d28c0.tar.gz
chromium_src-00854125164910b0bced16bcb67fdf583b9d28c0.tar.bz2
Provide Web Contents accessibility info.
BUG=36286 TEST=Verify accessibility info in AccExplorer32.exe. Review URL: http://codereview.chromium.org/652199 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/single_split_view.cc')
-rw-r--r--views/controls/single_split_view.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/controls/single_split_view.cc b/views/controls/single_split_view.cc
index d3031ce..10dc967 100644
--- a/views/controls/single_split_view.cc
+++ b/views/controls/single_split_view.cc
@@ -94,6 +94,23 @@ void SingleSplitView::Layout() {
View::Layout();
}
+bool SingleSplitView::GetAccessibleRole(AccessibilityTypes::Role* role) {
+ *role = AccessibilityTypes::ROLE_GROUPING;
+ return true;
+}
+
+bool SingleSplitView::GetAccessibleName(std::wstring* name) {
+ if (!accessible_name_.empty()) {
+ *name = accessible_name_;
+ return true;
+ }
+ return false;
+}
+
+void SingleSplitView::SetAccessibleName(const std::wstring& name) {
+ accessible_name_ = name;
+}
+
gfx::Size SingleSplitView::GetPreferredSize() {
int width = 0;
int height = 0;