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

Unified Diff: ash/common/system/user/user_card_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 | « ash/common/system/user/user_card_view.h ('k') | ash/common/wm/window_cycle_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/user_card_view.cc
diff --git a/ash/common/system/user/user_card_view.cc b/ash/common/system/user/user_card_view.cc
index ee4fa5a94766d3f9ca2d9c7a82164fb05240bd9c..e98a75d2a8de6b115b0c8373dd87c91d65f23e60 100644
--- a/ash/common/system/user/user_card_view.cc
+++ b/ash/common/system/user/user_card_view.cc
@@ -25,7 +25,7 @@
#include "components/user_manager/user_info.h"
#include "grit/ash_resources.h"
#include "grit/ash_strings.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/geometry/insets.h"
@@ -339,12 +339,12 @@ UserCardView::UserCardView(LoginStatus login_status,
UserCardView::~UserCardView() {}
-void UserCardView::GetAccessibleState(ui::AXViewState* state) {
- state->role = ui::AX_ROLE_STATIC_TEXT;
+void UserCardView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ node_data->role = ui::AX_ROLE_STATIC_TEXT;
std::vector<base::string16> labels;
for (int i = 0; i < child_count(); ++i)
GetAccessibleLabelFromDescendantViews(child_at(i), labels);
- state->name = base::JoinString(labels, base::ASCIIToUTF16(" "));
+ node_data->SetName(base::JoinString(labels, base::ASCIIToUTF16(" ")));
}
void UserCardView::AddPublicModeUserContent(int max_width) {
« no previous file with comments | « ash/common/system/user/user_card_view.h ('k') | ash/common/wm/window_cycle_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698