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

Unified Diff: ash/common/system/chromeos/power/tray_power.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/chromeos/power/power_status_view.cc ('k') | ash/common/system/chromeos/tray_caps_lock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/power/tray_power.cc
diff --git a/ash/common/system/chromeos/power/tray_power.cc b/ash/common/system/chromeos/power/tray_power.cc
index a3b248f9663fa4e46777d9011ba98d7a62102df2..3bf3208d4e3f69dd6648c7456244a25ce37fd18a 100644
--- a/ash/common/system/chromeos/power/tray_power.cc
+++ b/ash/common/system/chromeos/power/tray_power.cc
@@ -23,7 +23,7 @@
#include "base/time/time.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/resource/resource_bundle.h"
#include "ui/message_center/message_center.h"
#include "ui/message_center/notification.h"
@@ -101,9 +101,9 @@ class PowerTrayView : public TrayItemView {
~PowerTrayView() override {}
// Overriden from views::View.
- void GetAccessibleState(ui::AXViewState* state) override {
- state->name = accessible_name_;
- state->role = ui::AX_ROLE_BUTTON;
+ void GetAccessibleNodeData(ui::AXNodeData* node_data) override {
+ node_data->SetName(accessible_name_);
+ node_data->role = ui::AX_ROLE_BUTTON;
}
void UpdateStatus(bool battery_alert) {
« no previous file with comments | « ash/common/system/chromeos/power/power_status_view.cc ('k') | ash/common/system/chromeos/tray_caps_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698