OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_NODE_SERIALIZER_H_ | |
6 #define CONTENT_RENDERER_ACCESSIBILITY_NODE_SERIALIZER_H_ | |
7 #pragma once | |
8 | |
9 #include "content/common/accessibility_node_data.h" | |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h" | |
11 | |
12 namespace content { | |
13 | |
14 class AccessibilityNodeSerializer { | |
jam
2012/06/12 00:00:42
nit: why a class instead of just having this be co
dmazzoni
2012/06/12 18:35:33
Mainly to encapsulate the enums, so I'm fine with
| |
15 public: | |
16 enum IncludeChildren { | |
jam
2012/06/12 00:00:42
nit: i realize you're just moving this, and in Web
dmazzoni
2012/06/12 18:35:33
The style guide specifically suggests using enums
jam
2012/06/12 21:01:52
That's the first time I hear this, and this change
| |
17 NO_CHILDREN, | |
18 INCLUDE_CHILDREN | |
19 }; | |
20 | |
21 enum IncludeLineBreaks { | |
22 NO_LINE_BREAKS, | |
23 INCLUDE_LINE_BREAKS | |
24 }; | |
25 | |
26 static void Serialize(const WebKit::WebAccessibilityObject& src, | |
27 AccessibilityNodeData* dst, | |
28 IncludeChildren include_children, | |
29 IncludeLineBreaks include_line_breaks); | |
30 | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // CONTENT_RENDERER_ACCESSIBILITY_NODE_SERIALIZER_H_ | |
OLD | NEW |