diff options
Diffstat (limited to 'views/controls/tree/tree_view.cc')
-rw-r--r-- | views/controls/tree/tree_view.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/views/controls/tree/tree_view.cc b/views/controls/tree/tree_view.cc index 3f6b8bf..4e8a53d 100644 --- a/views/controls/tree/tree_view.cc +++ b/views/controls/tree/tree_view.cc @@ -11,6 +11,7 @@ #include "base/stl_util-inl.h" #include "base/win/win_util.h" #include "grit/app_resources.h" +#include "ui/base/accessibility/accessible_view_state.h" #include "ui/base/keycodes/keyboard_codes.h" #include "ui/base/keycodes/keyboard_code_conversion_win.h" #include "ui/base/resource/resource_bundle.h" @@ -60,12 +61,9 @@ TreeView::~TreeView() { ImageList_Destroy(image_list_); } -AccessibilityTypes::Role TreeView::GetAccessibleRole() { - return AccessibilityTypes::ROLE_OUTLINE; -} - -AccessibilityTypes::State TreeView::GetAccessibleState() { - return AccessibilityTypes::STATE_READONLY; +void TreeView::GetAccessibleState(ui::AccessibleViewState* state) { + state->role = ui::AccessibilityTypes::ROLE_OUTLINE; + state->state = ui::AccessibilityTypes::STATE_READONLY; } void TreeView::SetModel(TreeModel* model) { |