OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ | 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ |
6 #define CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ | 6 #define CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "third_party/WebKit/public/web/WebAXObject.h" | 10 #include "third_party/WebKit/public/web/WebAXObject.h" |
11 #include "ui/accessibility/ax_enums.h" | 11 #include "ui/accessibility/ax_enums.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // Convert a Blink WebAXRole to an AXRole defined in ui/accessibility. | 15 // Convert a Blink WebAXRole to an AXRole defined in ui/accessibility. |
16 ui::AXRole AXRoleFromBlink(blink::WebAXRole role); | 16 ui::AXRole AXRoleFromBlink(blink::WebAXRole role); |
17 | 17 |
18 // Convert a Blink WebAXEvent to an AXEvent defined in ui/accessibility. | 18 // Convert a Blink WebAXEvent to an AXEvent defined in ui/accessibility. |
19 ui::AXEvent AXEventFromBlink(blink::WebAXEvent event); | 19 ui::AXEvent AXEventFromBlink(blink::WebAXEvent event); |
20 | 20 |
21 // Provides a conversion between the WebAXObject state | 21 // Provides a conversion between the WebAXObject state |
22 // accessors and a state bitmask stored in an AXNodeData. | 22 // accessors and a state bitmask stored in an AXNodeData. |
23 // (Note that some rare states are sent as boolean attributes | 23 // (Note that some rare states are sent as boolean attributes |
24 // in AXNodeData instead.) | 24 // in AXNodeData instead.) |
25 uint32_t AXStateFromBlink(const blink::WebAXObject& o); | 25 uint32_t AXStateFromBlink(const blink::WebAXObject& o); |
26 | 26 |
27 ui::AXSupportedAction AXSupportedActionFromBlink( | 27 ui::AXDefaultActionVerb AXDefaultActionVerbFromBlink( |
28 blink::WebAXSupportedAction supported_action); | 28 blink::WebAXDefaultActionVerb action_verb); |
29 | 29 |
30 ui::AXMarkerType AXMarkerTypeFromBlink(blink::WebAXMarkerType marker_type); | 30 ui::AXMarkerType AXMarkerTypeFromBlink(blink::WebAXMarkerType marker_type); |
31 | 31 |
32 ui::AXTextDirection AXTextDirectionFromBlink( | 32 ui::AXTextDirection AXTextDirectionFromBlink( |
33 blink::WebAXTextDirection text_direction); | 33 blink::WebAXTextDirection text_direction); |
34 | 34 |
35 ui::AXTextStyle AXTextStyleFromBlink(blink::WebAXTextStyle text_style); | 35 ui::AXTextStyle AXTextStyleFromBlink(blink::WebAXTextStyle text_style); |
36 | 36 |
37 ui::AXAriaCurrentState AXAriaCurrentStateFromBlink( | 37 ui::AXAriaCurrentState AXAriaCurrentStateFromBlink( |
38 blink::WebAXAriaCurrentState aria_current_state); | 38 blink::WebAXAriaCurrentState aria_current_state); |
(...skipping 10 matching lines...) Expand all Loading... |
49 ui::AXNameFrom AXNameFromFromBlink(blink::WebAXNameFrom name_from); | 49 ui::AXNameFrom AXNameFromFromBlink(blink::WebAXNameFrom name_from); |
50 | 50 |
51 ui::AXDescriptionFrom AXDescriptionFromFromBlink( | 51 ui::AXDescriptionFrom AXDescriptionFromFromBlink( |
52 blink::WebAXDescriptionFrom description_from); | 52 blink::WebAXDescriptionFrom description_from); |
53 | 53 |
54 ui::AXTextAffinity AXTextAffinityFromBlink(blink::WebAXTextAffinity affinity); | 54 ui::AXTextAffinity AXTextAffinityFromBlink(blink::WebAXTextAffinity affinity); |
55 | 55 |
56 } // namespace content | 56 } // namespace content |
57 | 57 |
58 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ | 58 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ |
OLD | NEW |