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

Unified Diff: ash/common/default_accessibility_delegate.cc

Issue 2047053002: Moves ash/accessibility_delegate into common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test 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 | « ash/common/default_accessibility_delegate.h ('k') | ash/default_accessibility_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/default_accessibility_delegate.cc
diff --git a/ash/default_accessibility_delegate.cc b/ash/common/default_accessibility_delegate.cc
similarity index 91%
rename from ash/default_accessibility_delegate.cc
rename to ash/common/default_accessibility_delegate.cc
index 44eb8dfab9d6240af0094a0b051fae75d9d87735..5217bc96a5d996e59b56d03cb6dbcfae94d8210e 100644
--- a/ash/default_accessibility_delegate.cc
+++ b/ash/common/default_accessibility_delegate.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/default_accessibility_delegate.h"
+#include "ash/common/default_accessibility_delegate.h"
#include <limits>
@@ -113,29 +113,23 @@ bool DefaultAccessibilityDelegate::IsSwitchAccessEnabled() const {
}
bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const {
- return spoken_feedback_enabled_ ||
- high_contrast_enabled_ ||
- screen_magnifier_enabled_ ||
- large_cursor_enabled_ ||
- autoclick_enabled_ ||
- virtual_keyboard_enabled_ ||
- mono_audio_enabled_;
+ return spoken_feedback_enabled_ || high_contrast_enabled_ ||
+ screen_magnifier_enabled_ || large_cursor_enabled_ ||
+ autoclick_enabled_ || virtual_keyboard_enabled_ || mono_audio_enabled_;
}
bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const {
return false;
}
-void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {
-}
+void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {}
void DefaultAccessibilityDelegate::ToggleSpokenFeedback(
ui::AccessibilityNotificationVisibility notify) {
spoken_feedback_enabled_ = !spoken_feedback_enabled_;
}
-void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) {
-}
+void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) {}
double DefaultAccessibilityDelegate::GetSavedScreenMagnifierScale() {
return std::numeric_limits<double>::min();
@@ -151,8 +145,7 @@ DefaultAccessibilityDelegate::GetLastAccessibilityAlert() {
return accessibility_alert_;
}
-void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {
-}
+void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {}
base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const {
return base::TimeDelta();
« no previous file with comments | « ash/common/default_accessibility_delegate.h ('k') | ash/default_accessibility_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698