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

Side by Side Diff: content/renderer/accessibility/blink_ax_enum_conversion.h

Issue 2518183002: Moved action verbs out of Blink. (Closed)
Patch Set: Added missing braces. Created 4 years 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
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(
28 blink::WebAXSupportedAction supported_action);
29
27 ui::AXMarkerType AXMarkerTypeFromBlink(blink::WebAXMarkerType marker_type); 30 ui::AXMarkerType AXMarkerTypeFromBlink(blink::WebAXMarkerType marker_type);
28 31
29 ui::AXTextDirection AXTextDirectionFromBlink( 32 ui::AXTextDirection AXTextDirectionFromBlink(
30 blink::WebAXTextDirection text_direction); 33 blink::WebAXTextDirection text_direction);
31 34
32 ui::AXTextStyle AXTextStyleFromBlink(blink::WebAXTextStyle text_style); 35 ui::AXTextStyle AXTextStyleFromBlink(blink::WebAXTextStyle text_style);
33 36
34 ui::AXAriaCurrentState AXAriaCurrentStateFromBlink( 37 ui::AXAriaCurrentState AXAriaCurrentStateFromBlink(
35 blink::WebAXAriaCurrentState aria_current_state); 38 blink::WebAXAriaCurrentState aria_current_state);
36 39
37 ui::AXInvalidState AXInvalidStateFromBlink( 40 ui::AXInvalidState AXInvalidStateFromBlink(
38 blink::WebAXInvalidState invalid_state); 41 blink::WebAXInvalidState invalid_state);
39 42
40 ui::AXSortDirection AXSortDirectionFromBlink( 43 ui::AXSortDirection AXSortDirectionFromBlink(
41 blink::WebAXSortDirection sort_direction); 44 blink::WebAXSortDirection sort_direction);
42 45
43 ui::AXNameFrom AXNameFromFromBlink(blink::WebAXNameFrom name_from); 46 ui::AXNameFrom AXNameFromFromBlink(blink::WebAXNameFrom name_from);
44 47
45 ui::AXDescriptionFrom AXDescriptionFromFromBlink( 48 ui::AXDescriptionFrom AXDescriptionFromFromBlink(
46 blink::WebAXDescriptionFrom description_from); 49 blink::WebAXDescriptionFrom description_from);
47 50
48 ui::AXTextAffinity AXTextAffinityFromBlink(blink::WebAXTextAffinity affinity); 51 ui::AXTextAffinity AXTextAffinityFromBlink(blink::WebAXTextAffinity affinity);
49 52
50 } // namespace content 53 } // namespace content
51 54
52 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ 55 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/renderer/accessibility/blink_ax_enum_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698