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 // Updates the policy for handling animated images. |
| 43 virtual void UpdateAnimationPolicy() = 0; |
| 44 |
42 // Add a callback method that will be called once, a small while after the | 45 // Add a callback method that will be called once, a small while after the |
43 // browser starts up, when accessibility state histograms are updated. | 46 // browser starts up, when accessibility state histograms are updated. |
44 // Use this to register a method to update additional accessibility | 47 // Use this to register a method to update additional accessibility |
45 // histograms. | 48 // histograms. |
46 virtual void AddHistogramCallback(base::Closure callback) = 0; | 49 virtual void AddHistogramCallback(base::Closure callback) = 0; |
47 | 50 |
48 virtual void UpdateHistogramsForTesting() = 0; | 51 virtual void UpdateHistogramsForTesting() = 0; |
49 }; | 52 }; |
50 | 53 |
51 } // namespace content | 54 } // namespace content |
52 | 55 |
53 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ | 56 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ |
OLD | NEW |