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

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

Issue 1822823002: Implement Chrome OS accessibility features to highlight focus, caret & cursor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing without views_delegate change for now Created 4 years, 9 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/session/session_state_observer.h" 10 #include "ash/session/session_state_observer.h"
(...skipping 16 matching lines...) Expand all
27 #include "ui/chromeos/accessibility_types.h" 27 #include "ui/chromeos/accessibility_types.h"
28 28
29 namespace content { 29 namespace content {
30 class RenderViewHost; 30 class RenderViewHost;
31 } 31 }
32 32
33 class Profile; 33 class Profile;
34 34
35 namespace chromeos { 35 namespace chromeos {
36 36
37 class AccessibilityHighlightManager;
38
37 enum AccessibilityNotificationType { 39 enum AccessibilityNotificationType {
38 ACCESSIBILITY_MANAGER_SHUTDOWN, 40 ACCESSIBILITY_MANAGER_SHUTDOWN,
39 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE, 41 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE,
40 ACCESSIBILITY_TOGGLE_LARGE_CURSOR, 42 ACCESSIBILITY_TOGGLE_LARGE_CURSOR,
41 ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER, 43 ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER,
42 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK, 44 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK,
43 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD, 45 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD,
44 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED 46 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED
45 }; 47 };
46 48
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 void UpdateSpokenFeedbackFromPref(); 276 void UpdateSpokenFeedbackFromPref();
275 void UpdateHighContrastFromPref(); 277 void UpdateHighContrastFromPref();
276 void UpdateAutoclickFromPref(); 278 void UpdateAutoclickFromPref();
277 void UpdateAutoclickDelayFromPref(); 279 void UpdateAutoclickDelayFromPref();
278 void UpdateVirtualKeyboardFromPref(); 280 void UpdateVirtualKeyboardFromPref();
279 void UpdateCaretHighlightFromPref(); 281 void UpdateCaretHighlightFromPref();
280 void UpdateCursorHighlightFromPref(); 282 void UpdateCursorHighlightFromPref();
281 void UpdateFocusHighlightFromPref(); 283 void UpdateFocusHighlightFromPref();
282 void UpdateSelectToSpeakFromPref(); 284 void UpdateSelectToSpeakFromPref();
283 void UpdateSwitchAccessFromPref(); 285 void UpdateSwitchAccessFromPref();
286 void UpdateAccessibilityHighlightingFromPrefs();
284 287
285 void CheckBrailleState(); 288 void CheckBrailleState();
286 void ReceiveBrailleDisplayState( 289 void ReceiveBrailleDisplayState(
287 scoped_ptr<extensions::api::braille_display_private::DisplayState> state); 290 scoped_ptr<extensions::api::braille_display_private::DisplayState> state);
288 void UpdateBrailleImeState(); 291 void UpdateBrailleImeState();
289 292
290 void SetProfile(Profile* profile); 293 void SetProfile(Profile* profile);
291 294
292 void UpdateChromeOSAccessibilityHistograms(); 295 void UpdateChromeOSAccessibilityHistograms();
293 296
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 scoped_ptr<ChromeVoxPanelWidgetObserver> chromevox_panel_widget_observer_; 375 scoped_ptr<ChromeVoxPanelWidgetObserver> chromevox_panel_widget_observer_;
373 376
374 std::string keyboard_listener_extension_id_; 377 std::string keyboard_listener_extension_id_;
375 bool keyboard_listener_capture_; 378 bool keyboard_listener_capture_;
376 379
377 // Listen to extension unloaded notifications. 380 // Listen to extension unloaded notifications.
378 ScopedObserver<extensions::ExtensionRegistry, 381 ScopedObserver<extensions::ExtensionRegistry,
379 extensions::ExtensionRegistryObserver> 382 extensions::ExtensionRegistryObserver>
380 extension_registry_observer_; 383 extension_registry_observer_;
381 384
385 scoped_ptr<AccessibilityHighlightManager> accessibility_highlight_manager_;
386
382 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; 387 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_;
383 388
384 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); 389 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
385 }; 390 };
386 391
387 } // namespace chromeos 392 } // namespace chromeos
388 393
389 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 394 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698