Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(873)

Side by Side Diff: webkit/glue/webaccessibility.h

Issue 7867018: Add routing id and notification type to accessibility logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add conversion from int to string. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698