summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authordzhioev@chromium.org <dzhioev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-14 01:49:13 +0000
committerdzhioev@chromium.org <dzhioev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-14 01:49:13 +0000
commitfefbc15bbc6a343519bc4eaaf3c7c88cfccb711b (patch)
tree05ffcb6e01e9bb30bb05347b5e2517932d0cf092 /ash
parent14c748bbf377663dda01649942488a15f108fd87 (diff)
downloadchromium_src-fefbc15bbc6a343519bc4eaaf3c7c88cfccb711b.zip
chromium_src-fefbc15bbc6a343519bc4eaaf3c7c88cfccb711b.tar.gz
chromium_src-fefbc15bbc6a343519bc4eaaf3c7c88cfccb711b.tar.bz2
Made first-run UI more accessibility-friendly.
* Made possible to enable spoken feedback for WebUI. * OverlayEventFilter changed to pass event through normal flow (instead of managing them by itself). * Tray bubble launched inactive to keep focus in WebUI. * Other improvements. BUG=269295 Review URL: https://codereview.chromium.org/107523007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/system/tray/system_tray.cc10
-rw-r--r--ash/wm/overlay_event_filter.cc12
2 files changed, 10 insertions, 12 deletions
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 87cc325..cee8847 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -259,10 +259,12 @@ void SystemTray::ShowDefaultView(BubbleCreationType creation_type) {
}
void SystemTray::ShowPersistentDefaultView() {
- ShowDefaultViewWithOffset(
- BUBBLE_CREATE_NEW,
- TrayBubbleView::InitParams::kArrowDefaultOffset,
- true);
+ ShowItems(items_.get(),
+ false,
+ false,
+ BUBBLE_CREATE_NEW,
+ TrayBubbleView::InitParams::kArrowDefaultOffset,
+ true);
}
void SystemTray::ShowDetailedView(SystemTrayItem* item,
diff --git a/ash/wm/overlay_event_filter.cc b/ash/wm/overlay_event_filter.cc
index 07db4f3..ed4f316 100644
--- a/ash/wm/overlay_event_filter.cc
+++ b/ash/wm/overlay_event_filter.cc
@@ -37,16 +37,12 @@ void OverlayEventFilter::OnKeyEvent(ui::KeyEvent* event) {
if (delegate_ && delegate_->IsCancelingKeyEvent(event))
Cancel();
- // Handle key events only when they are sent to a child of the delegate's
+ // Pass key events only when they are sent to a child of the delegate's
// window.
aura::Window* target = static_cast<aura::Window*>(event->target());
- if (delegate_ && delegate_->GetWindow() &&
- delegate_->GetWindow()->Contains(target))
- target->delegate()->OnKeyEvent(event);
-
- // Always handled: other windows shouldn't receive input while we're
- // displaying an overlay.
- event->StopPropagation();
+ if (!delegate_ || !delegate_->GetWindow() ||
+ !delegate_->GetWindow()->Contains(target))
+ event->StopPropagation();
}
void OverlayEventFilter::OnLoginStateChanged(