summaryrefslogtreecommitdiffstats
path: root/views/controls/tree/tree_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/tree/tree_view.cc')
-rw-r--r--views/controls/tree/tree_view.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/controls/tree/tree_view.cc b/views/controls/tree/tree_view.cc
index 4e8a53d..3f6b8bf 100644
--- a/views/controls/tree/tree_view.cc
+++ b/views/controls/tree/tree_view.cc
@@ -11,7 +11,6 @@
#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"
@@ -61,9 +60,12 @@ TreeView::~TreeView() {
ImageList_Destroy(image_list_);
}
-void TreeView::GetAccessibleState(ui::AccessibleViewState* state) {
- state->role = ui::AccessibilityTypes::ROLE_OUTLINE;
- state->state = ui::AccessibilityTypes::STATE_READONLY;
+AccessibilityTypes::Role TreeView::GetAccessibleRole() {
+ return AccessibilityTypes::ROLE_OUTLINE;
+}
+
+AccessibilityTypes::State TreeView::GetAccessibleState() {
+ return AccessibilityTypes::STATE_READONLY;
}
void TreeView::SetModel(TreeModel* model) {