diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-06 10:23:18 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-06 10:23:18 +0000 |
commit | 5ec61d49aa4a91049c58615279b1b491d8d7a722 (patch) | |
tree | 4890ccdbe0f05643e2735733f6cd552f6a09e26c /ash/system/status_area_widget.cc | |
parent | bf30b0f36986b2a50539cf9795bf4d5aa1a72f87 (diff) | |
download | chromium_src-5ec61d49aa4a91049c58615279b1b491d8d7a722.zip chromium_src-5ec61d49aa4a91049c58615279b1b491d8d7a722.tar.gz chromium_src-5ec61d49aa4a91049c58615279b1b491d8d7a722.tar.bz2 |
Fix launcher and system tray accessibility.
Fix AccessiblePaneView's logic when "Escape" is pressed: now it
restores focus to the last focused view but only if it's within the same
window and not within this pane - in practice, that only happens within
the browser window. Otherwise, it deactivates the current window - so
pressing Escape while focused on the launcher or status area will restore
activation to the browser window.
Also adds an accessible notification when the system tray opens.
BUG=225920
Review URL: https://chromiumcodereview.appspot.com/13471014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192734 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/status_area_widget.cc')
-rw-r--r-- | ash/system/status_area_widget.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ash/system/status_area_widget.cc b/ash/system/status_area_widget.cc index 0701097..f818cbf 100644 --- a/ash/system/status_area_widget.cc +++ b/ash/system/status_area_widget.cc @@ -90,6 +90,12 @@ bool StatusAreaWidget::IsMessageBubbleShown() const { web_notification_tray_->IsMessageCenterBubbleVisible())); } +void StatusAreaWidget::OnNativeWidgetActivationChanged(bool active) { + Widget::OnNativeWidgetActivationChanged(active); + if (active) + status_area_widget_delegate_->SetPaneFocusAndFocusDefault(); +} + void StatusAreaWidget::AddSystemTray() { system_tray_ = new SystemTray(this); status_area_widget_delegate_->AddTray(system_tray_); |