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_COMMON_VIEW_MESSAGES_ENUMS_H_ | 5 #ifndef CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
6 #define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ | 6 #define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
7 | 7 |
8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
9 | 9 |
10 // Values that may be OR'd together to form the 'flags' parameter of a | 10 // Values that may be OR'd together to form the 'flags' parameter of a |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 RESTORE, | 46 RESTORE, |
47 | 47 |
48 // Like RESTORE, except that the navigation contains POST data. | 48 // Like RESTORE, except that the navigation contains POST data. |
49 RESTORE_WITH_POST, | 49 RESTORE_WITH_POST, |
50 | 50 |
51 // Navigation type not categorized by the other types. | 51 // Navigation type not categorized by the other types. |
52 NORMAL | 52 NORMAL |
53 }; | 53 }; |
54 }; | 54 }; |
55 | 55 |
56 enum AccessibilityMode { | 56 enum AccessibilityModeFlag { |
57 // WebKit accessibility is off and no accessibility information is | 57 // Blink accessibility is on and accessibility information is sent from the |
58 // sent from the renderer to the browser process. | 58 // renderer to the browser process. Note that none of the other flags do |
59 AccessibilityModeOff, | 59 // anything if this flag is off. |
60 AccessibilityModeFlagRenderer = 1 << 0, | |
61 | |
62 // Accessibility updates are processed to create platform trees and events are | |
63 // passed to platform APIs in the browser. | |
64 AccessibilityModeFlagPlatform = 1 << 1, | |
60 | 65 |
61 // WebKit accessibility is on, but only limited information about | 66 // WebKit accessibility is on, but only limited information about |
David Tseng
2014/01/27 22:16:06
Blink
aboxhall
2014/01/28 00:18:42
Done.
| |
62 // editable text nodes is sent to the browser process. Useful for | 67 // editable text nodes is sent to the browser process. Useful for |
David Tseng
2014/01/27 22:16:06
s/is/are
aboxhall
2014/01/28 00:18:42
Nope :)
limited information (about editable text n
David Tseng
2014/01/28 00:48:45
Oops; yep. Never liked passive voice I guess.
aboxhall
2014/01/28 17:48:26
Yeah, it's not the most elegant.
| |
63 // implementing limited UIA on tablets. | 68 // implementing limited UIA on tablets. |
64 AccessibilityModeEditableTextOnly, | 69 AccessibilityModeFlagEditableTextOnly = 1 << 2, |
70 }; | |
65 | 71 |
66 // WebKit accessibility is on, and the full accessibility tree is synced | 72 enum AccessibilityModeConstants { |
67 // to the browser process. Useful for screen readers and magnifiers. | 73 // All accessibility is off. |
74 AccessibilityModeOff = 0, | |
75 | |
76 // Renderer accessibility is on, and platform APIs are called. | |
68 AccessibilityModeComplete, | 77 AccessibilityModeComplete, |
78 | |
79 // Renderer accessibility is on, platform APIs are called, but only limited | |
80 // information is available (see AccessibilityModeFlagEditableTextOnly). | |
81 AccessibilityModeEditableTextOnly | |
David Tseng
2014/01/27 22:16:06
Why can't we just include these in the above enum?
aboxhall
2014/01/28 00:18:42
Huh, the constant values didn't make it in.
I'd r
David Tseng
2014/01/28 00:48:45
I'm not sure I see the distinction. They're all mo
aboxhall
2014/01/28 17:48:26
Well, I don't think of the flags as modes, rather
David Tseng
2014/01/29 17:59:54
Ok; so, it sounds like we should just keep the int
| |
69 }; | 82 }; |
70 | 83 |
71 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ | 84 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
OLD | NEW |