OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_ |
7 | 7 |
| 8 #include "content/common/accessibility_mode_enums.h" |
8 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
9 #include "content/common/view_message_enums.h" | |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 // Adds the given accessibility mode constant to the given accessibility mode | 13 // Adds the given accessibility mode constant to the given accessibility mode |
14 // bitmap. | 14 // bitmap. |
15 CONTENT_EXPORT AccessibilityMode | 15 CONTENT_EXPORT AccessibilityMode |
16 AddAccessibilityModeTo(AccessibilityMode to, AccessibilityMode mode_to_add); | 16 AddAccessibilityModeTo(AccessibilityMode to, AccessibilityMode mode_to_add); |
17 | 17 |
18 // Removes the given accessibility mode constant from the given accessibility | 18 // Removes the given accessibility mode constant from the given accessibility |
19 // mode bitmap, managing the bits that are shared with other modes such that a | 19 // mode bitmap, managing the bits that are shared with other modes such that a |
20 // bit will only be turned off when all modes that depend on it have been | 20 // bit will only be turned off when all modes that depend on it have been |
21 // removed. | 21 // removed. |
22 CONTENT_EXPORT AccessibilityMode | 22 CONTENT_EXPORT AccessibilityMode |
23 RemoveAccessibilityModeFrom(AccessibilityMode to, | 23 RemoveAccessibilityModeFrom(AccessibilityMode to, |
24 AccessibilityMode mode_to_remove); | 24 AccessibilityMode mode_to_remove); |
25 | 25 |
26 } // namespace content | 26 } // namespace content |
27 | 27 |
28 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_ | 28 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_ |
OLD | NEW |