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

Unified Diff: ash/common/system/chromeos/power/power_status_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
Index: ash/common/system/chromeos/power/power_status_view.cc
diff --git a/ash/common/system/chromeos/power/power_status_view.cc b/ash/common/system/chromeos/power/power_status_view.cc
index a1e8bc7e181dd0a88c6bfb0ec5be13de2e995574..7d78ad3c7849640152b2bd4b8bea0b7a593375b0 100644
--- a/ash/common/system/chromeos/power/power_status_view.cc
+++ b/ash/common/system/chromeos/power/power_status_view.cc
@@ -14,7 +14,7 @@
#include "base/i18n/time_formatting.h"
#include "base/strings/utf_string_conversions.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/native_theme/native_theme.h"
#include "ui/views/controls/image_view.h"
@@ -180,12 +180,12 @@ void PowerStatusView::OnNativeThemeChanged(const ui::NativeTheme* theme) {
UpdateStyle();
}
-void PowerStatusView::GetAccessibleState(ui::AXViewState* state) {
+void PowerStatusView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
if (!MaterialDesignController::IsSystemTrayMenuMaterial())
return;
- state->role = ui::AX_ROLE_LABEL_TEXT;
- state->name = accessible_name_;
+ node_data->role = ui::AX_ROLE_LABEL_TEXT;
+ node_data->SetName(accessible_name_);
}
} // namespace ash
« no previous file with comments | « ash/common/system/chromeos/power/power_status_view.h ('k') | ash/common/system/chromeos/power/tray_power.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698