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

Unified Diff: chrome/browser/ui/views/location_bar/zoom_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/zoom_view.cc
diff --git a/chrome/browser/ui/views/location_bar/zoom_view.cc b/chrome/browser/ui/views/location_bar/zoom_view.cc
index 562dcc703440c200f9f4f22318d3d227312b981f..38dd099eb97cc9fa9c4f1492530a0e0d025e1e0a 100644
--- a/chrome/browser/ui/views/location_bar/zoom_view.cc
+++ b/chrome/browser/ui/views/location_bar/zoom_view.cc
@@ -10,7 +10,7 @@
#include "chrome/grit/generated_resources.h"
#include "components/toolbar/toolbar_model.h"
#include "components/zoom/zoom_controller.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/events/event.h"
#include "ui/gfx/geometry/size.h"
@@ -54,9 +54,9 @@ void ZoomView::OnExecuting(BubbleIconView::ExecuteSource source) {
ZoomBubbleView::USER_GESTURE);
}
-void ZoomView::GetAccessibleState(ui::AXViewState* state) {
- BubbleIconView::GetAccessibleState(state);
- state->name = l10n_util::GetStringUTF16(IDS_ACCNAME_ZOOM);
+void ZoomView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ BubbleIconView::GetAccessibleNodeData(node_data);
+ node_data->SetName(l10n_util::GetStringUTF8(IDS_ACCNAME_ZOOM));
}
views::BubbleDialogDelegateView* ZoomView::GetBubble() const {
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_view.h ('k') | chrome/browser/ui/views/omnibox/omnibox_result_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698