| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // Construct from a WebAccessibilityObject. Recursively creates child | 241 // Construct from a WebAccessibilityObject. Recursively creates child |
| 242 // nodes as needed to complete the tree. Adds |src| to |cache| and | 242 // nodes as needed to complete the tree. Adds |src| to |cache| and |
| 243 // stores its cache ID. | 243 // stores its cache ID. |
| 244 WebAccessibility(const WebKit::WebAccessibilityObject& src, | 244 WebAccessibility(const WebKit::WebAccessibilityObject& src, |
| 245 WebKit::WebAccessibilityCache* cache, | 245 WebKit::WebAccessibilityCache* cache, |
| 246 bool include_children); | 246 bool include_children); |
| 247 | 247 |
| 248 ~WebAccessibility(); | 248 ~WebAccessibility(); |
| 249 | 249 |
| 250 #ifndef NDEBUG | 250 #ifndef NDEBUG |
| 251 std::string DebugString(bool recursive); | 251 std::string DebugString(bool recursive, |
| 252 int render_routing_id, |
| 253 int notification_type); |
| 252 #endif | 254 #endif |
| 253 | 255 |
| 254 private: | 256 private: |
| 255 // Initialize an already-created struct, same as the constructor above. | 257 // Initialize an already-created struct, same as the constructor above. |
| 256 void Init(const WebKit::WebAccessibilityObject& src, | 258 void Init(const WebKit::WebAccessibilityObject& src, |
| 257 WebKit::WebAccessibilityCache* cache, | 259 WebKit::WebAccessibilityCache* cache, |
| 258 bool include_children); | 260 bool include_children); |
| 259 | 261 |
| 260 // Returns true if |ancestor| is the first unignored parent of |child|, | 262 // Returns true if |ancestor| is the first unignored parent of |child|, |
| 261 // which means that when walking up the parent chain from |child|, | 263 // which means that when walking up the parent chain from |child|, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 288 std::vector<int32> cell_ids; | 290 std::vector<int32> cell_ids; |
| 289 | 291 |
| 290 // For a table, the unique cell ids in row-major order of their first | 292 // For a table, the unique cell ids in row-major order of their first |
| 291 // occurrence. | 293 // occurrence. |
| 292 std::vector<int32> unique_cell_ids; | 294 std::vector<int32> unique_cell_ids; |
| 293 }; | 295 }; |
| 294 | 296 |
| 295 } // namespace webkit_glue | 297 } // namespace webkit_glue |
| 296 | 298 |
| 297 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 299 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| OLD | NEW |