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/session/session_state_observer.h" | 10 #include "ash/session/session_state_observer.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 244 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
245 // when their mapped event has occurred. The sound key enums can be found in | 245 // when their mapped event has occurred. The sound key enums can be found in |
246 // chromeos/audio/chromeos_sounds.h. | 246 // chromeos/audio/chromeos_sounds.h. |
247 void PlayEarcon(int sound_key); | 247 void PlayEarcon(int sound_key); |
248 | 248 |
249 // Forward an accessibility gesture from the touch exploration controller | 249 // Forward an accessibility gesture from the touch exploration controller |
250 // to ChromeVox. | 250 // to ChromeVox. |
251 void HandleAccessibilityGesture(ui::AXGesture gesture); | 251 void HandleAccessibilityGesture(ui::AXGesture gesture); |
252 | 252 |
| 253 // Update the touch exploration controller so that synthesized |
| 254 // touch events are anchored at this point. |
| 255 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point); |
| 256 |
253 // Called by our widget observer when the ChromeVoxPanel is closing. | 257 // Called by our widget observer when the ChromeVoxPanel is closing. |
254 void OnChromeVoxPanelClosing(); | 258 void OnChromeVoxPanelClosing(); |
255 void OnChromeVoxPanelDestroying(); | 259 void OnChromeVoxPanelDestroying(); |
256 | 260 |
257 // Profile having the a11y context. | 261 // Profile having the a11y context. |
258 Profile* profile() { return profile_; } | 262 Profile* profile() { return profile_; } |
259 | 263 |
260 // Extension id of extension receiving keyboard events. | 264 // Extension id of extension receiving keyboard events. |
261 void SetKeyboardListenerExtensionId(const std::string& id, | 265 void SetKeyboardListenerExtensionId(const std::string& id, |
262 content::BrowserContext* context); | 266 content::BrowserContext* context); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 accessibility_highlight_manager_; | 407 accessibility_highlight_manager_; |
404 | 408 |
405 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 409 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
406 | 410 |
407 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 411 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
408 }; | 412 }; |
409 | 413 |
410 } // namespace chromeos | 414 } // namespace chromeos |
411 | 415 |
412 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 416 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |