| 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 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // This is probably off, but may be on, if --force_renderer_accessibility is | 32 // This is probably off, but may be on, if --force_renderer_accessibility is |
| 33 // passed, or EditableTextOnly if this is Win7. | 33 // passed, or EditableTextOnly if this is Win7. |
| 34 virtual void ResetAccessibilityMode() = 0; | 34 virtual void ResetAccessibilityMode() = 0; |
| 35 | 35 |
| 36 // Called when screen reader client is detected. | 36 // Called when screen reader client is detected. |
| 37 virtual void OnScreenReaderDetected() = 0; | 37 virtual void OnScreenReaderDetected() = 0; |
| 38 | 38 |
| 39 // Returns true if the browser should be customized for accessibility. | 39 // Returns true if the browser should be customized for accessibility. |
| 40 virtual bool IsAccessibleBrowser() = 0; | 40 virtual bool IsAccessibleBrowser() = 0; |
| 41 | 41 |
| 42 // Gets the policy for handling animated images. |
| 43 // It has three options, "Allowed", "Once" and "None". |
| 44 virtual const std::string& GetImageAnimationPolicy() const = 0; |
| 45 |
| 46 // Sets the policy for handling animated images. |
| 47 virtual void SetImageAnimationPolicy(const std::string& policy) = 0; |
| 48 |
| 42 // Add a callback method that will be called once, a small while after the | 49 // Add a callback method that will be called once, a small while after the |
| 43 // browser starts up, when accessibility state histograms are updated. | 50 // browser starts up, when accessibility state histograms are updated. |
| 44 // Use this to register a method to update additional accessibility | 51 // Use this to register a method to update additional accessibility |
| 45 // histograms. | 52 // histograms. |
| 46 virtual void AddHistogramCallback(base::Closure callback) = 0; | 53 virtual void AddHistogramCallback(base::Closure callback) = 0; |
| 47 | 54 |
| 48 virtual void UpdateHistogramsForTesting() = 0; | 55 virtual void UpdateHistogramsForTesting() = 0; |
| 49 }; | 56 }; |
| 50 | 57 |
| 51 } // namespace content | 58 } // namespace content |
| 52 | 59 |
| 53 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ | 60 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ |
| OLD | NEW |