| Index: ash/common/shelf/shelf_button.cc
|
| diff --git a/ash/common/shelf/shelf_button.cc b/ash/common/shelf/shelf_button.cc
|
| index ef00082ce3f6de53770d4df141be23cdd5b58971..4a938563ed76d4a3c8d5e9fe5eb50d6353f38219 100644
|
| --- a/ash/common/shelf/shelf_button.cc
|
| +++ b/ash/common/shelf/shelf_button.cc
|
| @@ -17,7 +17,7 @@
|
| #include "grit/ash_resources.h"
|
| #include "skia/ext/image_operations.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/resource/resource_bundle.h"
|
| #include "ui/compositor/layer.h"
|
| #include "ui/compositor/scoped_layer_animation_settings.h"
|
| @@ -395,9 +395,9 @@ bool ShelfButton::OnMouseDragged(const ui::MouseEvent& event) {
|
| return true;
|
| }
|
|
|
| -void ShelfButton::GetAccessibleState(ui::AXViewState* state) {
|
| - state->role = ui::AX_ROLE_BUTTON;
|
| - state->name = shelf_view_->GetTitleForView(this);
|
| +void ShelfButton::GetAccessibleNodeData(ui::AXNodeData* node_data) {
|
| + node_data->role = ui::AX_ROLE_BUTTON;
|
| + node_data->SetName(shelf_view_->GetTitleForView(this));
|
| }
|
|
|
| void ShelfButton::Layout() {
|
|
|