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 |
| 12 namespace ui { |
| 13 enum AXAriaCurrentState : int; |
| 14 enum AXDescriptionFrom : int; |
| 15 enum AXEvent : int; |
| 16 enum AXInvalidState : int; |
| 17 enum AXMarkerType: int; |
| 18 enum AXNameFrom : int; |
| 19 enum AXRole : int; |
| 20 enum AXSortDirection : int; |
| 21 enum AXTextDirection : int; |
| 22 enum AXTextStyle : int; |
| 23 } |
12 | 24 |
13 namespace content { | 25 namespace content { |
14 | 26 |
15 // Convert a Blink WebAXRole to an AXRole defined in ui/accessibility. | 27 // Convert a Blink WebAXRole to an AXRole defined in ui/accessibility. |
16 ui::AXRole AXRoleFromBlink(blink::WebAXRole role); | 28 ui::AXRole AXRoleFromBlink(blink::WebAXRole role); |
17 | 29 |
18 // Convert a Blink WebAXEvent to an AXEvent defined in ui/accessibility. | 30 // Convert a Blink WebAXEvent to an AXEvent defined in ui/accessibility. |
19 ui::AXEvent AXEventFromBlink(blink::WebAXEvent event); | 31 ui::AXEvent AXEventFromBlink(blink::WebAXEvent event); |
20 | 32 |
21 // Provides a conversion between the WebAXObject state | 33 // Provides a conversion between the WebAXObject state |
(...skipping 19 matching lines...) Expand all Loading... |
41 blink::WebAXSortDirection sort_direction); | 53 blink::WebAXSortDirection sort_direction); |
42 | 54 |
43 ui::AXNameFrom AXNameFromFromBlink(blink::WebAXNameFrom name_from); | 55 ui::AXNameFrom AXNameFromFromBlink(blink::WebAXNameFrom name_from); |
44 | 56 |
45 ui::AXDescriptionFrom AXDescriptionFromFromBlink( | 57 ui::AXDescriptionFrom AXDescriptionFromFromBlink( |
46 blink::WebAXDescriptionFrom description_from); | 58 blink::WebAXDescriptionFrom description_from); |
47 | 59 |
48 } // namespace content | 60 } // namespace content |
49 | 61 |
50 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ | 62 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ |
OLD | NEW |