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

Unified Diff: ui/views/controls/button/checkbox.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 | « ui/views/controls/button/checkbox.h ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/checkbox.cc
diff --git a/ui/views/controls/button/checkbox.cc b/ui/views/controls/button/checkbox.cc
index feb053b4d7def44a8dddc6f5befff8297b885344..353532decc9401a1b7a5979c01b49a25c66c6988 100644
--- a/ui/views/controls/button/checkbox.cc
+++ b/ui/views/controls/button/checkbox.cc
@@ -8,7 +8,7 @@
#include <utility>
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
@@ -122,11 +122,11 @@ const char* Checkbox::GetClassName() const {
return kViewClassName;
}
-void Checkbox::GetAccessibleState(ui::AXViewState* state) {
- LabelButton::GetAccessibleState(state);
- state->role = ui::AX_ROLE_CHECK_BOX;
+void Checkbox::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ LabelButton::GetAccessibleNodeData(node_data);
+ node_data->role = ui::AX_ROLE_CHECK_BOX;
if (checked())
- state->AddStateFlag(ui::AX_STATE_CHECKED);
+ node_data->AddStateFlag(ui::AX_STATE_CHECKED);
}
void Checkbox::OnPaint(gfx::Canvas* canvas) {
« no previous file with comments | « ui/views/controls/button/checkbox.h ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698