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

Side by Side Diff: ash/ash_touch_exploration_manager_chromeos.cc

Issue 1953613002: Make touch accessibility gestures work with ChromeVox Next (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
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/audio/sounds.h" 8 #include "ash/audio/sounds.h"
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void AshTouchExplorationManager::PlayExitScreenEarcon() { 77 void AshTouchExplorationManager::PlayExitScreenEarcon() {
78 Shell::GetInstance()->accessibility_delegate()->PlayEarcon( 78 Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
79 chromeos::SOUND_EXIT_SCREEN); 79 chromeos::SOUND_EXIT_SCREEN);
80 } 80 }
81 81
82 void AshTouchExplorationManager::PlayEnterScreenEarcon() { 82 void AshTouchExplorationManager::PlayEnterScreenEarcon() {
83 Shell::GetInstance()->accessibility_delegate()->PlayEarcon( 83 Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
84 chromeos::SOUND_ENTER_SCREEN); 84 chromeos::SOUND_ENTER_SCREEN);
85 } 85 }
86 86
87 void AshTouchExplorationManager::HandleAccessibilityGesture(
88 ui::AXGesture gesture) {
89 Shell::GetInstance()->accessibility_delegate()->HandleAccessibilityGesture(
90 gesture);
91 }
92
87 void AshTouchExplorationManager::OnWindowActivated( 93 void AshTouchExplorationManager::OnWindowActivated(
88 aura::client::ActivationChangeObserver::ActivationReason reason, 94 aura::client::ActivationChangeObserver::ActivationReason reason,
89 aura::Window* gained_active, 95 aura::Window* gained_active,
90 aura::Window* lost_active) { 96 aura::Window* lost_active) {
91 UpdateTouchExplorationState(); 97 UpdateTouchExplorationState();
92 } 98 }
93 99
94 void AshTouchExplorationManager::UpdateTouchExplorationState() { 100 void AshTouchExplorationManager::UpdateTouchExplorationState() {
95 // Comes from components/exo/shell_surface.cc. 101 // Comes from components/exo/shell_surface.cc.
96 const char kExoShellSurfaceWindowName[] = "ExoShellSurface"; 102 const char kExoShellSurfaceWindowName[] = "ExoShellSurface";
(...skipping 15 matching lines...) Expand all
112 touch_exploration_controller_.reset(); 118 touch_exploration_controller_.reset();
113 } 119 }
114 } 120 }
115 121
116 bool AshTouchExplorationManager::VolumeAdjustSoundEnabled() { 122 bool AshTouchExplorationManager::VolumeAdjustSoundEnabled() {
117 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 123 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
118 chromeos::switches::kDisableVolumeAdjustSound); 124 chromeos::switches::kDisableVolumeAdjustSound);
119 } 125 }
120 126
121 } // namespace ash 127 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698