Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 UI_ACCESSIBILITY_AX_NODE_DATA_H_ | 5 #ifndef UI_ACCESSIBILITY_AX_NODE_DATA_H_ |
| 6 #define UI_ACCESSIBILITY_AX_NODE_DATA_H_ | 6 #define UI_ACCESSIBILITY_AX_NODE_DATA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "ui/accessibility/ax_enums.h" | 13 #include "ui/accessibility/ax.h" |
| 14 #include "ui/accessibility/ax_export.h" | 14 #include "ui/accessibility/ax_export.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 using namespace ax; | |
|
aboxhall
2014/01/22 17:49:45
This is forbidden by the style guide: http://googl
David Tseng
2014/01/22 20:53:54
Done.
| |
| 18 | 19 |
| 19 // A compact representation of the accessibility information for a | 20 // A compact representation of the accessibility information for a |
| 20 // single web object, in a form that can be serialized and sent from | 21 // single web object, in a form that can be serialized and sent from |
| 21 // one process to another. | 22 // one process to another. |
| 22 struct AX_EXPORT AXNodeData { | 23 struct AX_EXPORT AXNodeData { |
| 23 AXNodeData(); | 24 AXNodeData(); |
| 24 virtual ~AXNodeData(); | 25 virtual ~AXNodeData(); |
| 25 | 26 |
| 26 void AddStringAttribute(AXStringAttribute attribute, | 27 void AddStringAttribute(AXStringAttribute attribute, |
| 27 const std::string& value); | 28 const std::string& value); |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 52 std::vector<std::pair<AXBoolAttribute, bool> > bool_attributes; | 53 std::vector<std::pair<AXBoolAttribute, bool> > bool_attributes; |
| 53 std::vector<std::pair<AXIntListAttribute, std::vector<int32> > > | 54 std::vector<std::pair<AXIntListAttribute, std::vector<int32> > > |
| 54 intlist_attributes; | 55 intlist_attributes; |
| 55 std::vector<std::pair<std::string, std::string> > html_attributes; | 56 std::vector<std::pair<std::string, std::string> > html_attributes; |
| 56 std::vector<int32> child_ids; | 57 std::vector<int32> child_ids; |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace ui | 60 } // namespace ui |
| 60 | 61 |
| 61 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ | 62 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ |
| OLD | NEW |