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

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

Issue 2559663002: Support focus highlight in Android window (Closed)
Patch Set: Fix comments and style. Created 3 years, 11 months 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"
Luis Héctor Chávez 2017/01/19 17:17:56 nit: It's better if you remove this and fwd-declar
yawano 2017/01/20 06:52:30 Done.
28 29
29 class Profile; 30 class Profile;
30 31
31 namespace chromeos { 32 namespace chromeos {
32 33
33 class AccessibilityExtensionLoader; 34 class AccessibilityExtensionLoader;
34 class AccessibilityHighlightManager; 35 class AccessibilityHighlightManager;
35 class SelectToSpeakEventHandler; 36 class SelectToSpeakEventHandler;
36 37
37 enum AccessibilityNotificationType { 38 enum AccessibilityNotificationType {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Notify accessibility when locale changes occur. 244 // Notify accessibility when locale changes occur.
244 void OnLocaleChanged(); 245 void OnLocaleChanged();
245 246
246 // Whether or not to enable toggling spoken feedback via holding down 247 // Whether or not to enable toggling spoken feedback via holding down
247 // two fingers on the screen. 248 // two fingers on the screen.
248 bool ShouldToggleSpokenFeedbackViaTouch(); 249 bool ShouldToggleSpokenFeedbackViaTouch();
249 250
250 // Play tick sound indicating spoken feedback will be toggled after countdown. 251 // Play tick sound indicating spoken feedback will be toggled after countdown.
251 bool PlaySpokenFeedbackToggleCountdown(int tick_count); 252 bool PlaySpokenFeedbackToggleCountdown(int tick_count);
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 select_to_speak_event_handler_; 416 select_to_speak_event_handler_;
413 417
414 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; 418 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_;
415 419
416 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); 420 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
417 }; 421 };
418 422
419 } // namespace chromeos 423 } // namespace chromeos
420 424
421 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 425 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698