blob: 6c9fcf4491e0da4d3eb5d5cde479eca896eb10c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_
#define ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_
#include "ash/ash_export.h"
#include "ash/system/tray_accessibility.h"
#include "ui/chromeos/touch_exploration_controller.h"
namespace chromeos {
class CrasAudioHandler;
}
namespace ash {
class RootWindowController;
// Responsible for initializing TouchExplorationController when spoken
// feedback is on for ChromeOS only. This class implements
// TouchExplorationControllerDelegate which allows touch gestures to manipulate
// the system.
class ASH_EXPORT AshTouchExplorationManager
: public ash::AccessibilityObserver,
public ui::TouchExplorationControllerDelegate {
public:
explicit AshTouchExplorationManager(
RootWindowController* root_window_controller);
~AshTouchExplorationManager() override;
// AccessibilityObserver overrides:
void OnAccessibilityModeChanged(
ui::AccessibilityNotificationVisibility notify) override;
// TouchExplorationControllerDelegate overrides:
void SetOutputLevel(int volume) override;
void SilenceSpokenFeedback() override;
void PlayVolumeAdjustEarcon() override;
void PlayPassthroughEarcon() override;
void PlayExitScreenEarcon() override;
void PlayEnterScreenEarcon() override;
private:
void UpdateTouchExplorationState();
bool VolumeAdjustSoundEnabled();
scoped_ptr<ui::TouchExplorationController> touch_exploration_controller_;
RootWindowController* root_window_controller_;
chromeos::CrasAudioHandler* audio_handler_;
DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManager);
};
} // namespace ash
#endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_
|