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

Unified Diff: ash/common/system/ime/tray_ime_chromeos.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/date/date_view.cc ('k') | ash/common/system/tray/actionable_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/ime/tray_ime_chromeos.cc
diff --git a/ash/common/system/ime/tray_ime_chromeos.cc b/ash/common/system/ime/tray_ime_chromeos.cc
index 7bcc4e949c6f69a927798474b52775e7568a3c46..b70d7eff6baaa605b4face1a625b03fef8033250 100644
--- a/ash/common/system/ime/tray_ime_chromeos.cc
+++ b/ash/common/system/ime/tray_ime_chromeos.cc
@@ -28,7 +28,7 @@
#include "grit/ash_resources.h"
#include "grit/ash_strings.h"
#include "ui/accessibility/ax_enums.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/font.h"
#include "ui/gfx/image/image.h"
@@ -57,11 +57,11 @@ class SelectableHoverHighlightView : public HoverHighlightView {
protected:
// Overridden from views::View.
- void GetAccessibleState(ui::AXViewState* state) override {
- HoverHighlightView::GetAccessibleState(state);
- state->role = ui::AX_ROLE_CHECK_BOX;
+ void GetAccessibleNodeData(ui::AXNodeData* node_data) override {
+ HoverHighlightView::GetAccessibleNodeData(node_data);
+ node_data->role = ui::AX_ROLE_CHECK_BOX;
if (selected_)
- state->AddStateFlag(ui::AX_STATE_CHECKED);
+ node_data->AddStateFlag(ui::AX_STATE_CHECKED);
}
private:
« no previous file with comments | « ash/common/system/date/date_view.cc ('k') | ash/common/system/tray/actionable_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698