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

Unified Diff: ash/ash_touch_exploration_manager_chromeos.cc

Issue 2738133003: Promotes a handful of members from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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/accelerators/spoken_feedback_toggler_unittest.cc ('k') | ash/common/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ash_touch_exploration_manager_chromeos.cc
diff --git a/ash/ash_touch_exploration_manager_chromeos.cc b/ash/ash_touch_exploration_manager_chromeos.cc
index 1cd1ccd0f65ae20dcacd00110b5150331e9f6695..e77cd13a6fbb0523f0d92f3b8d368c38e77486f6 100644
--- a/ash/ash_touch_exploration_manager_chromeos.cc
+++ b/ash/ash_touch_exploration_manager_chromeos.cc
@@ -58,8 +58,8 @@ void AshTouchExplorationManager::SetOutputLevel(int volume) {
}
void AshTouchExplorationManager::SilenceSpokenFeedback() {
- if (WmShell::Get()->accessibility_delegate()->IsSpokenFeedbackEnabled())
- WmShell::Get()->accessibility_delegate()->SilenceSpokenFeedback();
+ if (Shell::GetInstance()->accessibility_delegate()->IsSpokenFeedbackEnabled())
+ Shell::GetInstance()->accessibility_delegate()->SilenceSpokenFeedback();
}
void AshTouchExplorationManager::PlayVolumeAdjustEarcon() {
@@ -67,29 +67,30 @@ void AshTouchExplorationManager::PlayVolumeAdjustEarcon() {
return;
if (!audio_handler_->IsOutputMuted() &&
audio_handler_->GetOutputVolumePercent() != 100) {
- WmShell::Get()->accessibility_delegate()->PlayEarcon(
+ Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
chromeos::SOUND_VOLUME_ADJUST);
}
}
void AshTouchExplorationManager::PlayPassthroughEarcon() {
- WmShell::Get()->accessibility_delegate()->PlayEarcon(
+ Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
chromeos::SOUND_PASSTHROUGH);
}
void AshTouchExplorationManager::PlayExitScreenEarcon() {
- WmShell::Get()->accessibility_delegate()->PlayEarcon(
+ Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
chromeos::SOUND_EXIT_SCREEN);
}
void AshTouchExplorationManager::PlayEnterScreenEarcon() {
- WmShell::Get()->accessibility_delegate()->PlayEarcon(
+ Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
chromeos::SOUND_ENTER_SCREEN);
}
void AshTouchExplorationManager::HandleAccessibilityGesture(
ui::AXGesture gesture) {
- WmShell::Get()->accessibility_delegate()->HandleAccessibilityGesture(gesture);
+ Shell::GetInstance()->accessibility_delegate()->HandleAccessibilityGesture(
+ gesture);
}
void AshTouchExplorationManager::OnDisplayMetricsChanged(
@@ -102,13 +103,15 @@ void AshTouchExplorationManager::OnDisplayMetricsChanged(
void AshTouchExplorationManager::PlaySpokenFeedbackToggleCountdown(
int tick_count) {
- AccessibilityDelegate* delegate = WmShell::Get()->accessibility_delegate();
+ AccessibilityDelegate* delegate =
+ Shell::GetInstance()->accessibility_delegate();
if (delegate->ShouldToggleSpokenFeedbackViaTouch())
delegate->PlaySpokenFeedbackToggleCountdown(tick_count);
}
void AshTouchExplorationManager::ToggleSpokenFeedback() {
- AccessibilityDelegate* delegate = WmShell::Get()->accessibility_delegate();
+ AccessibilityDelegate* delegate =
+ Shell::GetInstance()->accessibility_delegate();
if (delegate->ShouldToggleSpokenFeedbackViaTouch())
delegate->ToggleSpokenFeedback(ash::A11Y_NOTIFICATION_SHOW);
}
@@ -138,7 +141,7 @@ void AshTouchExplorationManager::UpdateTouchExplorationState() {
wm::GetActiveWindow()->GetName() == kExoShellSurfaceWindowName;
const bool spoken_feedback_enabled =
- WmShell::Get()->accessibility_delegate()->IsSpokenFeedbackEnabled();
+ Shell::GetInstance()->accessibility_delegate()->IsSpokenFeedbackEnabled();
if (!touch_accessibility_enabler_) {
// Always enable gesture to toggle spoken feedback.
@@ -159,7 +162,7 @@ void AshTouchExplorationManager::UpdateTouchExplorationState() {
.work_area();
touch_exploration_controller_->SetExcludeBounds(work_area);
SilenceSpokenFeedback();
- WmShell::Get()->accessibility_delegate()->ClearFocusHighlight();
+ Shell::GetInstance()->accessibility_delegate()->ClearFocusHighlight();
} else {
touch_exploration_controller_->SetExcludeBounds(gfx::Rect());
}
« no previous file with comments | « ash/accelerators/spoken_feedback_toggler_unittest.cc ('k') | ash/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698