Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 | 22 |
| 23 // Called when accessibility is enabled manually (via command-line flag). | 23 // Called when accessibility is enabled manually (via command-line flag). |
| 24 virtual void OnAccessibilityEnabledManually() = 0; | 24 virtual void OnAccessibilityEnabledManually() = 0; |
| 25 | 25 |
| 26 // Called when screen reader client is detected. | 26 // Called when screen reader client is detected. |
| 27 virtual void OnScreenReaderDetected() = 0; | 27 virtual void OnScreenReaderDetected() = 0; |
| 28 | 28 |
| 29 // Returns true if the browser should be customized for accessibility. | 29 // Returns true if the browser should be customized for accessibility. |
| 30 virtual bool IsAccessibleBrowser() = 0; | 30 virtual bool IsAccessibleBrowser() = 0; |
| 31 | 31 |
| 32 virtual bool GetAccessibilityEnabled() = 0; | |
|
dmazzoni
2013/02/27 16:41:01
Make GetAccessibilityMode virtual instead.
aboxhall
2013/02/27 18:58:50
Done.
| |
| 33 virtual void SetAccessibilityEnabled(bool enabled) = 0; | |
| 34 | |
| 32 // Add a callback method that will be called once, a small while after the | 35 // Add a callback method that will be called once, a small while after the |
| 33 // browser starts up, when accessibility state histograms are updated. | 36 // browser starts up, when accessibility state histograms are updated. |
| 34 // Use this to register a method to update additional accessibility | 37 // Use this to register a method to update additional accessibility |
| 35 // histograms. | 38 // histograms. |
| 36 virtual void AddHistogramCallback(base::Closure callback) = 0; | 39 virtual void AddHistogramCallback(base::Closure callback) = 0; |
| 37 | 40 |
| 38 virtual void UpdateHistogramsForTesting() = 0; | 41 virtual void UpdateHistogramsForTesting() = 0; |
| 39 }; | 42 }; |
| 40 | 43 |
| 41 } // namespace content | 44 } // namespace content |
| 42 | 45 |
| 43 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ | 46 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ |
| OLD | NEW |