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

Side by Side Diff: ash/ash_touch_exploration_manager_chromeos.cc

Issue 2955783003: Call matching method on delegate (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/ash_touch_exploration_manager_chromeos.h" 5 #include "ash/ash_touch_exploration_manager_chromeos.h"
6 6
7 #include "ash/accessibility_delegate.h" 7 #include "ash/accessibility_delegate.h"
8 #include "ash/keyboard/keyboard_observer_register.h" 8 #include "ash/keyboard/keyboard_observer_register.h"
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/shared/app_types.h" 10 #include "ash/shared/app_types.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 UpdateTouchExplorationState(); 110 UpdateTouchExplorationState();
111 } 111 }
112 112
113 void AshTouchExplorationManager::OnTwoFingerTouchStart() { 113 void AshTouchExplorationManager::OnTwoFingerTouchStart() {
114 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); 114 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate();
115 delegate->OnTwoFingerTouchStart(); 115 delegate->OnTwoFingerTouchStart();
116 } 116 }
117 117
118 void AshTouchExplorationManager::OnTwoFingerTouchStop() { 118 void AshTouchExplorationManager::OnTwoFingerTouchStop() {
119 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); 119 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate();
120 delegate->OnTwoFingerTouchStart(); 120 delegate->OnTwoFingerTouchStop();
121 } 121 }
122 122
123 void AshTouchExplorationManager::PlaySpokenFeedbackToggleCountdown( 123 void AshTouchExplorationManager::PlaySpokenFeedbackToggleCountdown(
124 int tick_count) { 124 int tick_count) {
125 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); 125 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate();
126 if (delegate->ShouldToggleSpokenFeedbackViaTouch()) 126 if (delegate->ShouldToggleSpokenFeedbackViaTouch())
127 delegate->PlaySpokenFeedbackToggleCountdown(tick_count); 127 delegate->PlaySpokenFeedbackToggleCountdown(tick_count);
128 } 128 }
129 129
130 void AshTouchExplorationManager::ToggleSpokenFeedback() { 130 void AshTouchExplorationManager::ToggleSpokenFeedback() {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 touch_exploration_controller_.reset(); 213 touch_exploration_controller_.reset();
214 } 214 }
215 } 215 }
216 216
217 bool AshTouchExplorationManager::VolumeAdjustSoundEnabled() { 217 bool AshTouchExplorationManager::VolumeAdjustSoundEnabled() {
218 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 218 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
219 chromeos::switches::kDisableVolumeAdjustSound); 219 chromeos::switches::kDisableVolumeAdjustSound);
220 } 220 }
221 221
222 } // namespace ash 222 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698