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

Unified Diff: ui/views/bubble/bubble_dialog_delegate.cc

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)
Patch Set: Revert comment. Created 3 years, 7 months 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
Index: ui/views/bubble/bubble_dialog_delegate.cc
diff --git a/ui/views/bubble/bubble_dialog_delegate.cc b/ui/views/bubble/bubble_dialog_delegate.cc
index 0f239090451351e9ed2b1b2358027eb24c4f6342..497981732c225068e2385abbda0d5590fe5ccf06 100644
--- a/ui/views/bubble/bubble_dialog_delegate.cc
+++ b/ui/views/bubble/bubble_dialog_delegate.cc
@@ -320,6 +320,7 @@ void BubbleDialogDelegateView::HandleVisibilityChanged(Widget* widget,
// http://crbug.com/474622 for details.
if (widget == GetWidget() && visible) {
ui::AXNodeData node_data;
+ node_data.ClearBitfields();
GetAccessibleNodeData(&node_data);
if (node_data.role == ui::AX_ROLE_ALERT_DIALOG)
NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true);

Powered by Google App Engine
This is Rietveld 408576698