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

Unified Diff: chrome/browser/ui/views/toolbar/app_menu.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/app_menu.cc
diff --git a/chrome/browser/ui/views/toolbar/app_menu.cc b/chrome/browser/ui/views/toolbar/app_menu.cc
index 7f96f5236897721d71f01d2c761ee477d739815d..99d58363c2dc5dee3c1db6b3bc20237d87b85f55 100644
--- a/chrome/browser/ui/views/toolbar/app_menu.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu.cc
@@ -45,7 +45,7 @@
#include "extensions/common/feature_switch.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPaint.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
@@ -124,9 +124,9 @@ class FullscreenButton : public ImageButton {
return pref;
}
- void GetAccessibleState(ui::AXViewState* state) override {
- ImageButton::GetAccessibleState(state);
- state->role = ui::AX_ROLE_MENU_ITEM;
+ void GetAccessibleNodeData(ui::AXNodeData* node_data) override {
+ ImageButton::GetAccessibleNodeData(node_data);
+ node_data->role = ui::AX_ROLE_MENU_ITEM;
}
private:
@@ -268,9 +268,9 @@ class InMenuButton : public LabelButton {
SetFontList(MenuConfig::instance().font_list);
}
- void GetAccessibleState(ui::AXViewState* state) override {
- LabelButton::GetAccessibleState(state);
- state->role = ui::AX_ROLE_MENU_ITEM;
+ void GetAccessibleNodeData(ui::AXNodeData* node_data) override {
+ LabelButton::GetAccessibleNodeData(node_data);
+ node_data->role = ui::AX_ROLE_MENU_ITEM;
}
// views::LabelButton
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_unittest.cc ('k') | chrome/browser/ui/views/toolbar/browser_actions_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698