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

Unified Diff: ui/views/window/dialog_delegate.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/window/dialog_delegate.h ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index d98274cde71a90871a5fd96875f70838ca61cb3f..4fb35bbcbfc995f09bb843fe273b7050ce8da39c 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -8,7 +8,7 @@
#include "base/logging.h"
#include "build/build_config.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_palette.h"
#include "ui/strings/grit/ui_strings.h"
@@ -254,9 +254,9 @@ View* DialogDelegateView::GetContentsView() {
return this;
}
-void DialogDelegateView::GetAccessibleState(ui::AXViewState* state) {
- state->name = GetWindowTitle();
- state->role = ui::AX_ROLE_DIALOG;
+void DialogDelegateView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ node_data->SetName(GetWindowTitle());
+ node_data->role = ui::AX_ROLE_DIALOG;
}
void DialogDelegateView::ViewHierarchyChanged(
« no previous file with comments | « ui/views/window/dialog_delegate.h ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698