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 #pragma once | |
8 | 7 |
9 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
10 | 9 |
11 // The BrowserAccessibilityState class is used to determine if the browser | 10 // The BrowserAccessibilityState class is used to determine if the browser |
12 // should be customized for users with assistive technology, such as screen | 11 // should be customized for users with assistive technology, such as screen |
13 // readers. | 12 // readers. |
14 class CONTENT_EXPORT BrowserAccessibilityState { | 13 class CONTENT_EXPORT BrowserAccessibilityState { |
15 public: | 14 public: |
16 virtual ~BrowserAccessibilityState() { } | 15 virtual ~BrowserAccessibilityState() { } |
17 | 16 |
18 // Returns the singleton instance. | 17 // Returns the singleton instance. |
19 static BrowserAccessibilityState* GetInstance(); | 18 static BrowserAccessibilityState* GetInstance(); |
20 | 19 |
21 // Called when accessibility is enabled manually (via command-line flag). | 20 // Called when accessibility is enabled manually (via command-line flag). |
22 virtual void OnAccessibilityEnabledManually() = 0; | 21 virtual void OnAccessibilityEnabledManually() = 0; |
23 | 22 |
24 // Called when screen reader client is detected. | 23 // Called when screen reader client is detected. |
25 virtual void OnScreenReaderDetected() = 0; | 24 virtual void OnScreenReaderDetected() = 0; |
26 | 25 |
27 // Returns true if the browser should be customized for accessibility. | 26 // Returns true if the browser should be customized for accessibility. |
28 virtual bool IsAccessibleBrowser() = 0; | 27 virtual bool IsAccessibleBrowser() = 0; |
29 }; | 28 }; |
30 | 29 |
31 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ | 30 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ |
OLD | NEW |