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

Unified Diff: chrome/browser/ui/views/location_bar/open_pdf_in_reader_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
Index: chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc
diff --git a/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc b/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc
index 12a7e94dea64e3e20514f6abdd30d283c2b2a471..58f9375c661040fa736dd6c80293d7c8c68c1118 100644
--- a/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc
+++ b/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc
@@ -8,7 +8,7 @@
#include "chrome/grit/generated_resources.h"
#include "components/pdf/browser/open_pdf_in_reader_prompt_client.h"
#include "components/pdf/browser/pdf_web_contents_helper.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/paint_vector_icon.h"
@@ -52,10 +52,10 @@ void OpenPDFInReaderView::ShowBubble() {
bubble_->GetWidget()->Show();
}
-void OpenPDFInReaderView::GetAccessibleState(ui::AXViewState* state) {
- ImageView::GetAccessibleState(state);
- state->name = l10n_util::GetStringUTF16(IDS_ACCNAME_OPEN_PDF_IN_READER);
- state->role = ui::AX_ROLE_BUTTON;
+void OpenPDFInReaderView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ ImageView::GetAccessibleNodeData(node_data);
+ node_data->SetName(l10n_util::GetStringUTF8(IDS_ACCNAME_OPEN_PDF_IN_READER));
+ node_data->role = ui::AX_ROLE_BUTTON;
}
bool OpenPDFInReaderView::OnMousePressed(const ui::MouseEvent& event) {

Powered by Google App Engine
This is Rietveld 408576698