Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Unified Diff: ui/views/controls/tree/tree_view.cc

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/tree/tree_view.h ('k') | ui/views/controls/webview/webview.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tree/tree_view.cc
diff --git a/ui/views/controls/tree/tree_view.cc b/ui/views/controls/tree/tree_view.cc
index fd195e2ae3589b1a3992af670c4b647ff4d944f0..943ef4bc400448bda1e5aaae25687a696471e2d6 100644
--- a/ui/views/controls/tree/tree_view.cc
+++ b/ui/views/controls/tree/tree_view.cc
@@ -9,7 +9,7 @@
#include "base/i18n/rtl.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/ime/input_method.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/resource/resource_bundle.h"
@@ -408,15 +408,15 @@ void TreeView::ShowContextMenu(const gfx::Point& p,
View::ShowContextMenu(p, source_type);
}
-void TreeView::GetAccessibleState(ui::AXViewState* state) {
- state->role = ui::AX_ROLE_TREE;
- state->AddStateFlag(ui::AX_STATE_READ_ONLY);
+void TreeView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ node_data->role = ui::AX_ROLE_TREE;
+ node_data->AddStateFlag(ui::AX_STATE_READ_ONLY);
if (!selected_node_)
return;
// Get selected item info.
- state->role = ui::AX_ROLE_TREE_ITEM;
- state->name = selected_node_->model_node()->GetTitle();
+ node_data->role = ui::AX_ROLE_TREE_ITEM;
+ node_data->SetName(selected_node_->model_node()->GetTitle());
}
const char* TreeView::GetClassName() const {
« no previous file with comments | « ui/views/controls/tree/tree_view.h ('k') | ui/views/controls/webview/webview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698