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

Unified Diff: chrome/browser/ui/views/autofill/password_generation_popup_view_views.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
Index: chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
diff --git a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
index b21503c6ed588c6bb0beb89ee53e7e7da93d4354..00aa9a2471fdfbf56dcc06cc0f3033cdf24d2616 100644
--- a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
+++ b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
@@ -8,7 +8,7 @@
#include "base/strings/string16.h"
#include "chrome/browser/ui/autofill/password_generation_popup_controller.h"
#include "chrome/browser/ui/autofill/popup_constants.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/canvas.h"
#include "ui/gfx/color_palette.h"
@@ -279,10 +279,10 @@ PasswordGenerationPopupView* PasswordGenerationPopupView::Create(
return new PasswordGenerationPopupViewViews(controller, observing_widget);
}
-void PasswordGenerationPopupViewViews::GetAccessibleState(
- ui::AXViewState* state) {
- state->name = controller_->SuggestedText();
- state->role = ui::AX_ROLE_MENU_ITEM;
+void PasswordGenerationPopupViewViews::GetAccessibleNodeData(
+ ui::AXNodeData* node_data) {
+ node_data->SetName(controller_->SuggestedText());
+ node_data->role = ui::AX_ROLE_MENU_ITEM;
}
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698