| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 5 #ifndef WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| 6 #define WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 6 #define WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // Empty constructor, for serialization. | 160 // Empty constructor, for serialization. |
| 161 WebAccessibility(); | 161 WebAccessibility(); |
| 162 | 162 |
| 163 // Construct from a WebAccessibilityObject. Recursively creates child | 163 // Construct from a WebAccessibilityObject. Recursively creates child |
| 164 // nodes as needed to complete the tree. Adds |src| to |cache| and | 164 // nodes as needed to complete the tree. Adds |src| to |cache| and |
| 165 // stores its cache ID. | 165 // stores its cache ID. |
| 166 WebAccessibility(const WebKit::WebAccessibilityObject& src, | 166 WebAccessibility(const WebKit::WebAccessibilityObject& src, |
| 167 WebKit::WebAccessibilityCache* cache); | 167 WebKit::WebAccessibilityCache* cache); |
| 168 | 168 |
| 169 ~WebAccessibility(); |
| 170 |
| 169 // Initialize an already-created struct, same as the constructor a | 171 // Initialize an already-created struct, same as the constructor a |
| 170 void Init(const WebKit::WebAccessibilityObject& src, | 172 void Init(const WebKit::WebAccessibilityObject& src, |
| 171 WebKit::WebAccessibilityCache* cache); | 173 WebKit::WebAccessibilityCache* cache); |
| 172 | 174 |
| 173 // This is a simple serializable struct. All member variables should be | 175 // This is a simple serializable struct. All member variables should be |
| 174 // copyable. | 176 // copyable. |
| 175 int32 id; | 177 int32 id; |
| 176 string16 name; | 178 string16 name; |
| 177 string16 value; | 179 string16 value; |
| 178 Role role; | 180 Role role; |
| 179 uint32 state; | 181 uint32 state; |
| 180 WebKit::WebRect location; | 182 WebKit::WebRect location; |
| 181 std::map<int32, string16> attributes; | 183 std::map<int32, string16> attributes; |
| 182 std::vector<WebAccessibility> children; | 184 std::vector<WebAccessibility> children; |
| 183 }; | 185 }; |
| 184 | 186 |
| 185 } // namespace webkit_glue | 187 } // namespace webkit_glue |
| 186 | 188 |
| 187 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 189 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| OLD | NEW |