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

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

Issue 143473003: Generate ax enums from idl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove trailing commas. Created 6 years, 11 months 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 | Annotate | Revision Log
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 "third_party/WebKit/public/web/WebAXObject.h" 8 #include "third_party/WebKit/public/web/WebAXObject.h"
9 #include "ui/accessibility/ax_enums.h" 9 #include "ui/accessibility/ui.h"
aboxhall 2014/01/22 23:28:32 This name bothers me a bit. Are you able to go int
10 10
11 namespace content { 11 namespace content {
12 12
13 // Convert a Blink WebAXRole to an AXRole defined in ui/accessibility. 13 // Convert a Blink WebAXRole to an AXRole defined in ui/accessibility.
14 ui::AXRole AXRoleFromBlink(blink::WebAXRole role); 14 ui::AXRole AXRoleFromBlink(blink::WebAXRole role);
15 15
16 // Convert a Blink WebAXEvent to an AXEvent defined in ui/accessibility. 16 // Convert a Blink WebAXEvent to an AXEvent defined in ui/accessibility.
17 ui::AXEvent AXEventFromBlink(blink::WebAXEvent event); 17 ui::AXEvent AXEventFromBlink(blink::WebAXEvent event);
18 18
19 // Provides a conversion between the WebAXObject state 19 // Provides a conversion between the WebAXObject state
20 // accessors and a state bitmask stored in an AXNodeData. 20 // accessors and a state bitmask stored in an AXNodeData.
21 // (Note that some rare states are sent as boolean attributes 21 // (Note that some rare states are sent as boolean attributes
22 // in AXNodeData instead.) 22 // in AXNodeData instead.)
23 uint32 AXStateFromBlink(const blink::WebAXObject& o); 23 uint32 AXStateFromBlink(const blink::WebAXObject& o);
24 24
25 } // namespace content 25 } // namespace content
26 26
27 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_ 27 #endif // CONTENT_RENDERER_ACCESSIBILITY_BLINK_AX_ENUM_CONVERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698