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

Unified Diff: chrome/browser/ui/views/tabs/tab.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 | « chrome/browser/ui/views/tabs/tab.h ('k') | chrome/browser/ui/views/tabs/tab_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab.cc
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
index b5891907aa2dccea5d5d4d1a839266d545c5034e..67d61889872176f31aefb63ccc8a9f8cbe972a09 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -32,7 +32,7 @@
#include "content/public/common/url_constants.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
#include "third_party/skia/include/pathops/SkPathOps.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/models/list_selection_model.h"
#include "ui/base/resource/resource_bundle.h"
@@ -1098,14 +1098,14 @@ void Tab::OnGestureEvent(ui::GestureEvent* event) {
event->SetHandled();
}
-void Tab::GetAccessibleState(ui::AXViewState* state) {
- state->role = ui::AX_ROLE_TAB;
- state->name = data_.title;
- state->AddStateFlag(ui::AX_STATE_MULTISELECTABLE);
- state->AddStateFlag(ui::AX_STATE_SELECTABLE);
- controller_->UpdateTabAccessibilityState(this, state);
+void Tab::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ node_data->role = ui::AX_ROLE_TAB;
+ node_data->SetName(data_.title);
+ node_data->AddStateFlag(ui::AX_STATE_MULTISELECTABLE);
+ node_data->AddStateFlag(ui::AX_STATE_SELECTABLE);
+ controller_->UpdateTabAccessibilityState(this, node_data);
if (IsSelected())
- state->AddStateFlag(ui::AX_STATE_SELECTED);
+ node_data->AddStateFlag(ui::AX_STATE_SELECTED);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.h ('k') | chrome/browser/ui/views/tabs/tab_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698