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

Unified Diff: ui/app_list/views/start_page_view.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/app_list/views/app_list_item_view.cc ('k') | ui/message_center/views/bounded_label.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/start_page_view.cc
diff --git a/ui/app_list/views/start_page_view.cc b/ui/app_list/views/start_page_view.cc
index dd5a920c92d3c0ab22499b809e5ea9e4d0d41f18..0bac15b7b2ab6f8edd0963a7683af447347acb52 100644
--- a/ui/app_list/views/start_page_view.cc
+++ b/ui/app_list/views/start_page_view.cc
@@ -11,7 +11,7 @@
#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/utf_string_conversions.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/app_list/app_list_constants.h"
#include "ui/app_list/app_list_item.h"
#include "ui/app_list/app_list_model.h"
@@ -95,9 +95,9 @@ class CustomLauncherPageBackgroundView : public views::View {
bool selected() { return selected_; }
// Overridden from views::View:
- void GetAccessibleState(ui::AXViewState* state) override {
- state->role = ui::AX_ROLE_BUTTON;
- state->name = base::UTF8ToUTF16(custom_launcher_page_name_);
+ void GetAccessibleNodeData(ui::AXNodeData* node_data) override {
+ node_data->role = ui::AX_ROLE_BUTTON;
+ node_data->SetName(custom_launcher_page_name_);
}
private:
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/message_center/views/bounded_label.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698