| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 17 #include "ui/accessibility/ax_enums.h" | |
| 18 #include "ui/accessibility/ax_export.h" | 17 #include "ui/accessibility/ax_export.h" |
| 19 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 20 | 19 |
| 21 namespace gfx { | 20 namespace gfx { |
| 22 class Transform; | 21 class Transform; |
| 23 }; | 22 }; |
| 24 | 23 |
| 25 namespace ui { | 24 namespace ui { |
| 26 | 25 |
| 26 enum AXBoolAttribute : int; |
| 27 enum AXEvent : int; |
| 28 enum AXFloatAttribute : int; |
| 29 enum AXIntAttribute : int; |
| 30 enum AXIntListAttribute : int; |
| 31 enum AXRole : int; |
| 32 enum AXStringAttribute : int; |
| 33 |
| 27 // A compact representation of the accessibility information for a | 34 // A compact representation of the accessibility information for a |
| 28 // single accessible object, in a form that can be serialized and sent from | 35 // single accessible object, in a form that can be serialized and sent from |
| 29 // one process to another. | 36 // one process to another. |
| 30 struct AX_EXPORT AXNodeData { | 37 struct AX_EXPORT AXNodeData { |
| 31 AXNodeData(); | 38 AXNodeData(); |
| 32 virtual ~AXNodeData(); | 39 virtual ~AXNodeData(); |
| 33 | 40 |
| 34 AXNodeData(const AXNodeData& other); | 41 AXNodeData(const AXNodeData& other); |
| 35 AXNodeData& operator=(AXNodeData other); | 42 AXNodeData& operator=(AXNodeData other); |
| 36 | 43 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // NOTE: this member is a std::unique_ptr because it's rare and gfx::Transform | 127 // NOTE: this member is a std::unique_ptr because it's rare and gfx::Transform |
| 121 // takes up a fair amount of space. The assignment operator and copy | 128 // takes up a fair amount of space. The assignment operator and copy |
| 122 // constructor both make a duplicate of the owned pointer, so it acts more | 129 // constructor both make a duplicate of the owned pointer, so it acts more |
| 123 // like a member than a pointer. | 130 // like a member than a pointer. |
| 124 std::unique_ptr<gfx::Transform> transform; | 131 std::unique_ptr<gfx::Transform> transform; |
| 125 }; | 132 }; |
| 126 | 133 |
| 127 } // namespace ui | 134 } // namespace ui |
| 128 | 135 |
| 129 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ | 136 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ |
| OLD | NEW |