| 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/common/accessibility_types.h" | 10 #include "ash/common/accessibility_types.h" |
| 11 #include "ash/common/session/session_state_observer.h" | 11 #include "ash/common/session/session_state_observer.h" |
| 12 #include "ash/common/shell_observer.h" | 12 #include "ash/common/shell_observer.h" |
| 13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 14 #include "base/callback_list.h" | 14 #include "base/callback_list.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/scoped_observer.h" | 17 #include "base/scoped_observer.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 19 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
| 20 #include "chrome/browser/chromeos/accessibility/chromevox_panel.h" | 20 #include "chrome/browser/chromeos/accessibility/chromevox_panel.h" |
| 21 #include "chrome/browser/extensions/api/braille_display_private/braille_controll
er.h" | 21 #include "chrome/browser/extensions/api/braille_display_private/braille_controll
er.h" |
| 22 #include "components/prefs/pref_change_registrar.h" | 22 #include "components/prefs/pref_change_registrar.h" |
| 23 #include "content/public/browser/notification_observer.h" | 23 #include "content/public/browser/notification_observer.h" |
| 24 #include "content/public/browser/notification_registrar.h" | 24 #include "content/public/browser/notification_registrar.h" |
| 25 #include "extensions/browser/event_router.h" | 25 #include "extensions/browser/event_router.h" |
| 26 #include "extensions/browser/extension_system.h" | 26 #include "extensions/browser/extension_system.h" |
| 27 #include "ui/base/ime/chromeos/input_method_manager.h" | 27 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 28 #include "ui/gfx/geometry/rect.h" |
| 28 | 29 |
| 29 namespace content { | 30 namespace content { |
| 30 class RenderViewHost; | 31 class RenderViewHost; |
| 31 } | 32 } |
| 32 | 33 |
| 33 class Profile; | 34 class Profile; |
| 34 | 35 |
| 35 namespace chromeos { | 36 namespace chromeos { |
| 36 | 37 |
| 37 class AccessibilityExtensionLoader; | 38 class AccessibilityExtensionLoader; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // Notify accessibility when locale changes occur. | 251 // Notify accessibility when locale changes occur. |
| 251 void OnLocaleChanged(); | 252 void OnLocaleChanged(); |
| 252 | 253 |
| 253 // Whether or not to enable toggling spoken feedback via holding down | 254 // Whether or not to enable toggling spoken feedback via holding down |
| 254 // two fingers on the screen. | 255 // two fingers on the screen. |
| 255 bool ShouldToggleSpokenFeedbackViaTouch(); | 256 bool ShouldToggleSpokenFeedbackViaTouch(); |
| 256 | 257 |
| 257 // Play tick sound indicating spoken feedback will be toggled after countdown. | 258 // Play tick sound indicating spoken feedback will be toggled after countdown. |
| 258 bool PlaySpokenFeedbackToggleCountdown(int tick_count); | 259 bool PlaySpokenFeedbackToggleCountdown(int tick_count); |
| 259 | 260 |
| 261 // Notify that a view is focused in arc. |
| 262 void OnViewFocusedInArc(const gfx::Rect& bounds); |
| 263 |
| 260 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 264 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
| 261 // when their mapped event has occurred. The sound key enums can be found in | 265 // when their mapped event has occurred. The sound key enums can be found in |
| 262 // chromeos/audio/chromeos_sounds.h. | 266 // chromeos/audio/chromeos_sounds.h. |
| 263 bool PlayEarcon(int sound_key, PlaySoundOption option); | 267 bool PlayEarcon(int sound_key, PlaySoundOption option); |
| 264 | 268 |
| 265 // Forward an accessibility gesture from the touch exploration controller | 269 // Forward an accessibility gesture from the touch exploration controller |
| 266 // to ChromeVox. | 270 // to ChromeVox. |
| 267 void HandleAccessibilityGesture(ui::AXGesture gesture); | 271 void HandleAccessibilityGesture(ui::AXGesture gesture); |
| 268 | 272 |
| 269 // Update the touch exploration controller so that synthesized | 273 // Update the touch exploration controller so that synthesized |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 select_to_speak_event_handler_; | 425 select_to_speak_event_handler_; |
| 422 | 426 |
| 423 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 427 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
| 424 | 428 |
| 425 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 429 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
| 426 }; | 430 }; |
| 427 | 431 |
| 428 } // namespace chromeos | 432 } // namespace chromeos |
| 429 | 433 |
| 430 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 434 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |