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

Unified Diff: ash/common/system/chromeos/tray_caps_lock.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/tray_power.cc ('k') | ash/common/system/date/date_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/tray_caps_lock.cc
diff --git a/ash/common/system/chromeos/tray_caps_lock.cc b/ash/common/system/chromeos/tray_caps_lock.cc
index f0b91aa9a6edb8488c81e000c5b99f331807ed8e..003b9dd7372b947f8122ac37836c4e8d2d9f71fb 100644
--- a/ash/common/system/chromeos/tray_caps_lock.cc
+++ b/ash/common/system/chromeos/tray_caps_lock.cc
@@ -15,7 +15,7 @@
#include "base/sys_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/ime/chromeos/ime_keyboard.h"
#include "ui/base/ime/chromeos/input_method_manager.h"
#include "ui/base/resource/resource_bundle.h"
@@ -114,9 +114,9 @@ class CapsLockDefaultView : public ActionableView {
gfx::Size(text_size.width() + new_x - old_x, text_size.height()));
}
- void GetAccessibleState(ui::AXViewState* state) override {
- state->role = ui::AX_ROLE_BUTTON;
- state->name = text_label_->text();
+ void GetAccessibleNodeData(ui::AXNodeData* node_data) override {
+ node_data->role = ui::AX_ROLE_BUTTON;
+ node_data->SetName(text_label_->text());
}
// Overridden from ActionableView:
« no previous file with comments | « ash/common/system/chromeos/power/tray_power.cc ('k') | ash/common/system/date/date_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698