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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc

Issue 410783002: Corner Passthrough for Accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@side-gestures
Patch Set: Rebase off Master Created 6 years, 5 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: chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc b/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc
index 674459629c643bc302ce74be58929b8332a68fb4..77abb42a4067f5f39a9e729be8c2a3b4e007b2d4 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc
@@ -38,6 +38,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/user_metrics.h"
#include "grit/generated_resources.h"
+#include "media/audio/sounds/sounds_manager.h"
#include "ui/aura/window.h"
#include "ui/base/l10n/l10n_util.h"
@@ -199,6 +200,11 @@ class AccessibilityDelegateImpl : public ash::AccessibilityDelegate {
return ash::A11Y_ALERT_NONE;
}
+ virtual void PlayEarcon(media::SoundsManager::SoundKey sound_key) OVERRIDE {
+ DCHECK(chromeos::AccessibilityManager::Get());
James Cook 2014/07/29 04:27:24 We don't generally DCHECK something just before de
dmazzoni 2014/07/29 05:47:50 I see that pattern a fair amount. Must be differen
James Cook 2014/07/29 15:45:51 Yeah. I use it as a way to establish preconditions
lisayin 2014/07/30 15:32:51 Acknowledged.
+ return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key);
+ }
+
virtual base::TimeDelta PlayShutdownSound() const OVERRIDE {
return chromeos::AccessibilityManager::Get()->PlayShutdownSound();
}

Powered by Google App Engine
This is Rietveld 408576698