OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "ash/accessibility_types.h" | 10 #include "ash/accessibility_types.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 std::unique_ptr<AccessibilityStatusSubscription> RegisterCallback( | 253 std::unique_ptr<AccessibilityStatusSubscription> RegisterCallback( |
254 const AccessibilityStatusCallback& cb); | 254 const AccessibilityStatusCallback& cb); |
255 | 255 |
256 // Notify registered callbacks of a status change in an accessibility setting. | 256 // Notify registered callbacks of a status change in an accessibility setting. |
257 void NotifyAccessibilityStatusChanged( | 257 void NotifyAccessibilityStatusChanged( |
258 AccessibilityStatusEventDetails& details); | 258 AccessibilityStatusEventDetails& details); |
259 | 259 |
260 // Notify accessibility when locale changes occur. | 260 // Notify accessibility when locale changes occur. |
261 void OnLocaleChanged(); | 261 void OnLocaleChanged(); |
262 | 262 |
| 263 // Called when we first detect two fingers are held down, which can be |
| 264 // used to toggle spoken feedback on some touch-only devices. |
| 265 void OnTwoFingerTouchStart(); |
| 266 |
| 267 // Called when the user is no longer holding down two fingers (including |
| 268 // releasing one, holding down three, or moving them). |
| 269 void OnTwoFingerTouchStop(); |
| 270 |
263 // Whether or not to enable toggling spoken feedback via holding down | 271 // Whether or not to enable toggling spoken feedback via holding down |
264 // two fingers on the screen. | 272 // two fingers on the screen. |
265 bool ShouldToggleSpokenFeedbackViaTouch(); | 273 bool ShouldToggleSpokenFeedbackViaTouch(); |
266 | 274 |
267 // Play tick sound indicating spoken feedback will be toggled after countdown. | 275 // Play tick sound indicating spoken feedback will be toggled after countdown. |
268 bool PlaySpokenFeedbackToggleCountdown(int tick_count); | 276 bool PlaySpokenFeedbackToggleCountdown(int tick_count); |
269 | 277 |
270 // Notify that a view is focused in arc. | 278 // Notify that a view is focused in arc. |
271 void OnViewFocusedInArc(const gfx::Rect& bounds_in_screen); | 279 void OnViewFocusedInArc(const gfx::Rect& bounds_in_screen); |
272 | 280 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 switch_access_event_handler_; | 455 switch_access_event_handler_; |
448 | 456 |
449 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 457 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
450 | 458 |
451 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 459 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
452 }; | 460 }; |
453 | 461 |
454 } // namespace chromeos | 462 } // namespace chromeos |
455 | 463 |
456 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 464 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |