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

Unified Diff: chrome/browser/ui/views/exclusive_access_bubble_views.cc

Issue 1578293003: Fullscreen bubble: Now speaks the bubble text if a11y enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/subtle_notification_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/exclusive_access_bubble_views.cc
diff --git a/chrome/browser/ui/views/exclusive_access_bubble_views.cc b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
index b67c9378e3143485cdbf322024e9a3a57890a220..4409e18c870ef5a596bd3e5862e9d777ebd9d212 100644
--- a/chrome/browser/ui/views/exclusive_access_bubble_views.cc
+++ b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
@@ -22,6 +22,7 @@
#include "chrome/browser/ui/views/subtle_notification_view.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/notification_service.h"
+#include "ui/accessibility/ax_view_state.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/gfx/animation/slide_animation.h"
@@ -84,7 +85,11 @@ ExclusiveAccessBubbleViews::ExclusiveAccessBubbleViews(
bubble_view_context_->GetExclusiveAccessManager()
->fullscreen_controller()));
+ UpdateForImmersiveState();
UpdateMouseWatcher();
+
+ LOG(ERROR) << "ExclusiveAccessBubbleViews: NotifyAccessibilityEvent";
+ view_->NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, false);
}
ExclusiveAccessBubbleViews::~ExclusiveAccessBubbleViews() {
@@ -125,6 +130,10 @@ void ExclusiveAccessBubbleViews::UpdateContent(
StopWatchingMouse();
UpdateMouseWatcher();
+
+ LOG(ERROR)
+ << "ExclusiveAccessBubbleViews::UpdateContent: NotifyAccessibilityEvent";
+ view_->NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, false);
}
void ExclusiveAccessBubbleViews::RepositionIfVisible() {
« no previous file with comments | « no previous file | chrome/browser/ui/views/subtle_notification_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698