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

Unified Diff: ui/views/controls/link.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/link.h ('k') | ui/views/controls/menu/menu_item_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/link.cc
diff --git a/ui/views/controls/link.cc b/ui/views/controls/link.cc
index 176330bf30d9b30cd87727d89e05cf340cc780d5..352b47c6803215b328c70b5afd39c2ef3b185043 100644
--- a/ui/views/controls/link.cc
+++ b/ui/views/controls/link.cc
@@ -8,7 +8,7 @@
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/cursor/cursor.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/events/event.h"
@@ -128,9 +128,9 @@ bool Link::SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) {
(event.key_code() == ui::VKEY_RETURN);
}
-void Link::GetAccessibleState(ui::AXViewState* state) {
- Label::GetAccessibleState(state);
- state->role = ui::AX_ROLE_LINK;
+void Link::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ Label::GetAccessibleNodeData(node_data);
+ node_data->role = ui::AX_ROLE_LINK;
}
void Link::OnEnabledChanged() {
« no previous file with comments | « ui/views/controls/link.h ('k') | ui/views/controls/menu/menu_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698