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