Chromium Code Reviews| 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" |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 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 | 28 |
| 29 class Profile; | 29 class Profile; |
| 30 | 30 |
| 31 namespace gfx { | |
| 32 class Rect; | |
| 33 } // namespace gfx | |
| 34 | |
| 31 namespace chromeos { | 35 namespace chromeos { |
| 32 | 36 |
| 33 class AccessibilityExtensionLoader; | 37 class AccessibilityExtensionLoader; |
| 34 class AccessibilityHighlightManager; | 38 class AccessibilityHighlightManager; |
| 35 class SelectToSpeakEventHandler; | 39 class SelectToSpeakEventHandler; |
| 36 | 40 |
| 37 enum AccessibilityNotificationType { | 41 enum AccessibilityNotificationType { |
| 38 ACCESSIBILITY_MANAGER_SHUTDOWN, | 42 ACCESSIBILITY_MANAGER_SHUTDOWN, |
| 39 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE, | 43 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE, |
| 40 ACCESSIBILITY_TOGGLE_LARGE_CURSOR, | 44 ACCESSIBILITY_TOGGLE_LARGE_CURSOR, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 // Notify accessibility when locale changes occur. | 247 // Notify accessibility when locale changes occur. |
| 244 void OnLocaleChanged(); | 248 void OnLocaleChanged(); |
| 245 | 249 |
| 246 // Whether or not to enable toggling spoken feedback via holding down | 250 // Whether or not to enable toggling spoken feedback via holding down |
| 247 // two fingers on the screen. | 251 // two fingers on the screen. |
| 248 bool ShouldToggleSpokenFeedbackViaTouch(); | 252 bool ShouldToggleSpokenFeedbackViaTouch(); |
| 249 | 253 |
| 250 // Play tick sound indicating spoken feedback will be toggled after countdown. | 254 // Play tick sound indicating spoken feedback will be toggled after countdown. |
| 251 bool PlaySpokenFeedbackToggleCountdown(int tick_count); | 255 bool PlaySpokenFeedbackToggleCountdown(int tick_count); |
| 252 | 256 |
| 257 // Notify that a view is focused in arc. | |
| 258 void OnViewFocusedInArc(const gfx::Rect& bounds); | |
|
hidehiko
2017/01/20 13:24:15
Similary, what's |bounds|'s coordinate system etc.
yawano
2017/01/23 09:04:51
Done.
| |
| 259 | |
| 253 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 260 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
| 254 // when their mapped event has occurred. The sound key enums can be found in | 261 // when their mapped event has occurred. The sound key enums can be found in |
| 255 // chromeos/audio/chromeos_sounds.h. | 262 // chromeos/audio/chromeos_sounds.h. |
| 256 bool PlayEarcon(int sound_key, PlaySoundOption option); | 263 bool PlayEarcon(int sound_key, PlaySoundOption option); |
| 257 | 264 |
| 258 // Forward an accessibility gesture from the touch exploration controller | 265 // Forward an accessibility gesture from the touch exploration controller |
| 259 // to ChromeVox. | 266 // to ChromeVox. |
| 260 void HandleAccessibilityGesture(ui::AXGesture gesture); | 267 void HandleAccessibilityGesture(ui::AXGesture gesture); |
| 261 | 268 |
| 262 // Update the touch exploration controller so that synthesized | 269 // Update the touch exploration controller so that synthesized |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 412 select_to_speak_event_handler_; | 419 select_to_speak_event_handler_; |
| 413 | 420 |
| 414 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 421 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
| 415 | 422 |
| 416 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 423 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
| 417 }; | 424 }; |
| 418 | 425 |
| 419 } // namespace chromeos | 426 } // namespace chromeos |
| 420 | 427 |
| 421 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 428 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |