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

Unified Diff: ui/views/window/non_client_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/window/non_client_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/non_client_view.cc
diff --git a/ui/views/window/non_client_view.cc b/ui/views/window/non_client_view.cc
index 1cb6bc374c05f682dbe924dcbfbaad3fc1cb0ece..4e5188af2f6ca5ffddb15905ef0d6498e3ed3bd6 100644
--- a/ui/views/window/non_client_view.cc
+++ b/ui/views/window/non_client_view.cc
@@ -4,7 +4,7 @@
#include "ui/views/window/non_client_view.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/hit_test.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/views/rect_based_targeting_utils.h"
@@ -200,9 +200,9 @@ void NonClientView::ViewHierarchyChanged(
}
}
-void NonClientView::GetAccessibleState(ui::AXViewState* state) {
- state->role = ui::AX_ROLE_CLIENT;
- state->name = accessible_name_;
+void NonClientView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ node_data->role = ui::AX_ROLE_CLIENT;
+ node_data->SetName(accessible_name_);
}
const char* NonClientView::GetClassName() const {
@@ -318,8 +318,8 @@ int NonClientFrameView::GetHTComponentForFrame(const gfx::Point& point,
void NonClientFrameView::ActivationChanged(bool active) {
}
-void NonClientFrameView::GetAccessibleState(ui::AXViewState* state) {
- state->role = ui::AX_ROLE_CLIENT;
+void NonClientFrameView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ node_data->role = ui::AX_ROLE_CLIENT;
}
const char* NonClientFrameView::GetClassName() const {
« no previous file with comments | « ui/views/window/non_client_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698