Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager.h

Issue 2559663002: Support focus highlight in Android window (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 std::unique_ptr<AccessibilityStatusSubscription> RegisterCallback( 244 std::unique_ptr<AccessibilityStatusSubscription> RegisterCallback(
244 const AccessibilityStatusCallback& cb); 245 const AccessibilityStatusCallback& cb);
245 246
246 // Notify registered callbacks of a status change in an accessibility setting. 247 // Notify registered callbacks of a status change in an accessibility setting.
247 void NotifyAccessibilityStatusChanged( 248 void NotifyAccessibilityStatusChanged(
248 AccessibilityStatusEventDetails& details); 249 AccessibilityStatusEventDetails& details);
249 250
250 // Notify accessibility when locale changes occur. 251 // Notify accessibility when locale changes occur.
251 void OnLocaleChanged(); 252 void OnLocaleChanged();
252 253
254 // Notify that a view is focused in arc.
255 void OnViewFocusedInArc(const gfx::Rect& bounds);
256
253 // Plays an earcon. Earcons are brief and distinctive sounds that indicate 257 // 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 258 // when their mapped event has occurred. The sound key enums can be found in
255 // chromeos/audio/chromeos_sounds.h. 259 // chromeos/audio/chromeos_sounds.h.
256 bool PlayEarcon(int sound_key, PlaySoundOption option); 260 bool PlayEarcon(int sound_key, PlaySoundOption option);
257 261
258 // Forward an accessibility gesture from the touch exploration controller 262 // Forward an accessibility gesture from the touch exploration controller
259 // to ChromeVox. 263 // to ChromeVox.
260 void HandleAccessibilityGesture(ui::AXGesture gesture); 264 void HandleAccessibilityGesture(ui::AXGesture gesture);
261 265
262 // Update the touch exploration controller so that synthesized 266 // Update the touch exploration controller so that synthesized
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 select_to_speak_event_handler_; 418 select_to_speak_event_handler_;
415 419
416 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; 420 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_;
417 421
418 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); 422 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
419 }; 423 };
420 424
421 } // namespace chromeos 425 } // namespace chromeos
422 426
423 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 427 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698