Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2560)

Unified Diff: chrome/browser/ui/views/toolbar/browser_actions_container.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/toolbar/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
index 0521eac78b3b36ff7bf27ee92bda939ddc8404c7..9b411f34abb33196ce29f11a300418cdda70547d 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
@@ -28,7 +28,7 @@
#include "chrome/grit/theme_resources.h"
#include "extensions/common/feature_switch.h"
#include "third_party/skia/include/core/SkColor.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/dragdrop/drag_utils.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/nine_image_painter_factory.h"
@@ -502,10 +502,9 @@ int BrowserActionsContainer::OnPerformDrop(
return ui::DragDropTypes::DRAG_MOVE;
}
-void BrowserActionsContainer::GetAccessibleState(
- ui::AXViewState* state) {
- state->role = ui::AX_ROLE_GROUP;
- state->name = l10n_util::GetStringUTF16(IDS_ACCNAME_EXTENSIONS);
+void BrowserActionsContainer::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ node_data->role = ui::AX_ROLE_GROUP;
+ node_data->SetName(l10n_util::GetStringUTF8(IDS_ACCNAME_EXTENSIONS));
}
void BrowserActionsContainer::WriteDragDataForView(View* sender,
« no previous file with comments | « chrome/browser/ui/views/toolbar/browser_actions_container.h ('k') | chrome/browser/ui/views/toolbar/reload_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698