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

Unified Diff: ui/views/controls/menu/submenu_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
« no previous file with comments | « ui/views/controls/menu/submenu_view.h ('k') | ui/views/controls/message_box_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/submenu_view.cc
diff --git a/ui/views/controls/menu/submenu_view.cc b/ui/views/controls/menu/submenu_view.cc
index b09eadd165ffa565afc27361fe59f26a98791c5d..88431caaffb36afc167830d9bf9a4cf56f53950d 100644
--- a/ui/views/controls/menu/submenu_view.cc
+++ b/ui/views/controls/menu/submenu_view.cc
@@ -7,7 +7,7 @@
#include <algorithm>
#include "base/compiler_specific.h"
-#include "ui/accessibility/ax_view_state.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/base/ime/input_method.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/events/event.h"
@@ -181,14 +181,14 @@ gfx::Size SubmenuView::GetPreferredSize() const {
return gfx::Size(width, height + insets.height());
}
-void SubmenuView::GetAccessibleState(ui::AXViewState* state) {
+void SubmenuView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
// Inherit most of the state from the parent menu item, except the role and
// the orientation.
if (GetMenuItem())
- GetMenuItem()->GetAccessibleState(state);
- state->role = ui::AX_ROLE_MENU_LIST_POPUP;
+ GetMenuItem()->GetAccessibleNodeData(node_data);
+ node_data->role = ui::AX_ROLE_MENU_LIST_POPUP;
// Menus in Chrome are always traversed in a vertical direction.
- state->AddStateFlag(ui::AX_STATE_VERTICAL);
+ node_data->AddStateFlag(ui::AX_STATE_VERTICAL);
}
void SubmenuView::PaintChildren(const ui::PaintContext& context) {
« no previous file with comments | « ui/views/controls/menu/submenu_view.h ('k') | ui/views/controls/message_box_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698