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

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

Issue 10201014: Implement High Contrast mode for Chrome OS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove extra define guard Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 // Toggles whether Chrome OS spoken feedback is on or off. See docs for 33 // Toggles whether Chrome OS spoken feedback is on or off. See docs for
34 // EnableSpokenFeedback, above. 34 // EnableSpokenFeedback, above.
35 void ToggleSpokenFeedback(content::WebUI* login_web_ui); 35 void ToggleSpokenFeedback(content::WebUI* login_web_ui);
36 36
37 // Speaks the specified string. 37 // Speaks the specified string.
38 void Speak(const std::string& utterance); 38 void Speak(const std::string& utterance);
39 39
40 // Returns true if spoken feedback is enabled, or false if not. 40 // Returns true if spoken feedback is enabled, or false if not.
41 bool IsSpokenFeedbackEnabled(); 41 bool IsSpokenFeedbackEnabled();
42 42
43 // Returns true if High Contrast is enabled, or false if not.
44 bool IsHighContrastEnabled();
45
43 // Speak the given text if the accessibility pref is already set. 46 // Speak the given text if the accessibility pref is already set.
44 void MaybeSpeak(const std::string& utterance); 47 void MaybeSpeak(const std::string& utterance);
45 48
46 } // namespace accessibility 49 } // namespace accessibility
47 } // namespace chromeos 50 } // namespace chromeos
48 51
49 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ 52 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_extra_parts_ash.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698