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

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

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 10 matching lines...) Expand all
21 #include "extensions/browser/event_router.h" 21 #include "extensions/browser/event_router.h"
22 #include "extensions/browser/extension_system.h" 22 #include "extensions/browser/extension_system.h"
23 #include "ui/base/ime/chromeos/input_method_manager.h" 23 #include "ui/base/ime/chromeos/input_method_manager.h"
24 #include "ui/chromeos/accessibility_types.h" 24 #include "ui/chromeos/accessibility_types.h"
25 25
26 namespace content { 26 namespace content {
27 class RenderViewHost; 27 class RenderViewHost;
28 } 28 }
29 class Profile; 29 class Profile;
30 30
31 namespace user_manager {
32 class UserID;
33 }
34
31 namespace chromeos { 35 namespace chromeos {
32 36
33 enum AccessibilityNotificationType { 37 enum AccessibilityNotificationType {
34 ACCESSIBILITY_MANAGER_SHUTDOWN, 38 ACCESSIBILITY_MANAGER_SHUTDOWN,
35 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE, 39 ACCESSIBILITY_TOGGLE_HIGH_CONTRAST_MODE,
36 ACCESSIBILITY_TOGGLE_LARGE_CURSOR, 40 ACCESSIBILITY_TOGGLE_LARGE_CURSOR,
37 ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER, 41 ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER,
38 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK, 42 ACCESSIBILITY_TOGGLE_SPOKEN_FEEDBACK,
39 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD, 43 ACCESSIBILITY_TOGGLE_VIRTUAL_KEYBOARD,
40 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED 44 ACCESSIBILITY_BRAILLE_DISPLAY_CONNECTION_STATE_CHANGED
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Enables or disables the virtual keyboard. 159 // Enables or disables the virtual keyboard.
156 void EnableVirtualKeyboard(bool enabled); 160 void EnableVirtualKeyboard(bool enabled);
157 // Returns true if the virtual keyboard is enabled, otherwise false. 161 // Returns true if the virtual keyboard is enabled, otherwise false.
158 bool IsVirtualKeyboardEnabled(); 162 bool IsVirtualKeyboardEnabled();
159 163
160 // Returns true if a braille display is connected to the system, otherwise 164 // Returns true if a braille display is connected to the system, otherwise
161 // false. 165 // false.
162 bool IsBrailleDisplayConnected() const; 166 bool IsBrailleDisplayConnected() const;
163 167
164 // SessionStateObserver overrides: 168 // SessionStateObserver overrides:
165 void ActiveUserChanged(const std::string& user_id) override; 169 void ActiveUserChanged(const user_manager::UserID& user_id) override;
166 170
167 void SetProfileForTest(Profile* profile); 171 void SetProfileForTest(Profile* profile);
168 172
169 static void SetBrailleControllerForTest( 173 static void SetBrailleControllerForTest(
170 extensions::api::braille_display_private::BrailleController* controller); 174 extensions::api::braille_display_private::BrailleController* controller);
171 175
172 // Enables/disables system sounds. 176 // Enables/disables system sounds.
173 void EnableSystemSounds(bool system_sounds_enabled); 177 void EnableSystemSounds(bool system_sounds_enabled);
174 178
175 // Initiates play of shutdown sound and returns it's duration. 179 // Initiates play of shutdown sound and returns it's duration.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 bool braille_ime_current_; 290 bool braille_ime_current_;
287 291
288 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; 292 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_;
289 293
290 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); 294 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
291 }; 295 };
292 296
293 } // namespace chromeos 297 } // namespace chromeos
294 298
295 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ 299 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698