Commit 3d7dcea8 authored by jdufault's avatar jdufault Committed by Commit bot

Use accessibility name of the bubble widget for ChromeVox.

BUG=654913

Review-Url: https://chromiumcodereview.appspot.com/2414213003
Cr-Commit-Position: refs/heads/master@{#426884}
parent 3a4008d0
......@@ -427,6 +427,10 @@ void TrayBubbleView::GetWidgetHitTestMask(gfx::Path* mask) const {
mask->addRect(gfx::RectToSkRect(GetBubbleFrameView()->GetContentsBounds()));
}
base::string16 TrayBubbleView::GetAccessibleWindowTitle() const {
return delegate_->GetAccessibleNameForBubble();
}
gfx::Size TrayBubbleView::GetPreferredSize() const {
return gfx::Size(preferred_width_, GetHeightForWidth(preferred_width_));
}
......
......@@ -158,6 +158,7 @@ class VIEWS_EXPORT TrayBubbleView : public views::BubbleDialogDelegateView,
views::Widget* widget) override;
bool WidgetHasHitTestMask() const override;
void GetWidgetHitTestMask(gfx::Path* mask) const override;
base::string16 GetAccessibleWindowTitle() const override;
// Overridden from views::BubbleDialogDelegateView.
gfx::Rect GetAnchorRect() const override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment