diff options
Diffstat (limited to 'views/controls/single_split_view.cc')
-rw-r--r-- | views/controls/single_split_view.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/views/controls/single_split_view.cc b/views/controls/single_split_view.cc index 7522667..76e924e 100644 --- a/views/controls/single_split_view.cc +++ b/views/controls/single_split_view.cc @@ -9,6 +9,7 @@ #endif #include "skia/ext/skia_utils_win.h" +#include "ui/base/accessibility/accessible_view_state.h" #include "ui/gfx/canvas.h" #include "views/background.h" @@ -58,8 +59,9 @@ void SingleSplitView::Layout() { View::Layout(); } -AccessibilityTypes::Role SingleSplitView::GetAccessibleRole() { - return AccessibilityTypes::ROLE_GROUPING; +void SingleSplitView::GetAccessibleState(ui::AccessibleViewState* state) { + state->role = ui::AccessibilityTypes::ROLE_GROUPING; + state->name = accessible_name_; } gfx::Size SingleSplitView::GetPreferredSize() { @@ -143,6 +145,10 @@ void SingleSplitView::CalculateChildrenBounds( } } +void SingleSplitView::SetAccessibleName(const string16& name) { + accessible_name_ = name; +} + bool SingleSplitView::OnMousePressed(const MouseEvent& event) { if (!IsPointInDivider(event.location())) return false; |