Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: content/browser/accessibility/accessibility_mode_helper.h

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src@enable
Patch Set: Tweak AccessibilityModeHelperTest Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_
7
8 #include "content/common/view_message_enums.h"
9
10 namespace content {
11
12 // Adds the given accessibility mode constant to the given accessibility mode
13 // bitmap.
14 BASE_EXPORT unsigned int AddAccessibilityMode(unsigned int to,
15 AccessibilityMode mode_to_add);
16
17 // Removes the given accessibility mode constant from the given accessibility
18 // mode bitmap, managing the bits that are shared with other modes such that a
19 // bit will only be turned off when all modes that depend on it have been
20 // removed.
21 BASE_EXPORT unsigned int RemoveAccessibilityMode(
22 unsigned int from,
23 AccessibilityMode mode_to_remove);
24
25 } // namespace content
26
27 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_MODE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698