| 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> |
| 11 | 11 |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 #include "webkit/glue/webkit_glue_export.h" |
| 14 | 15 |
| 15 namespace WebKit { | 16 namespace WebKit { |
| 16 class WebAccessibilityObject; | 17 class WebAccessibilityObject; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace webkit_glue { | 20 namespace webkit_glue { |
| 20 | 21 |
| 21 // A compact representation of the accessibility information for a | 22 // A compact representation of the accessibility information for a |
| 22 // single web object, in a form that can be serialized and sent from | 23 // single web object, in a form that can be serialized and sent from |
| 23 // the renderer process to the browser process. | 24 // the renderer process to the browser process. |
| 24 struct WebAccessibility { | 25 struct WEBKIT_GLUE_EXPORT WebAccessibility { |
| 25 public: | 26 public: |
| 26 // An enumeration of accessibility roles. | 27 // An enumeration of accessibility roles. |
| 27 enum Role { | 28 enum Role { |
| 28 ROLE_UNKNOWN = 0, | 29 ROLE_UNKNOWN = 0, |
| 29 | 30 |
| 30 // Used by Chromium to distinguish between the root of the tree | 31 // Used by Chromium to distinguish between the root of the tree |
| 31 // for this page, and a web area for a frame within this page. | 32 // for this page, and a web area for a frame within this page. |
| 32 ROLE_ROOT_WEB_AREA, | 33 ROLE_ROOT_WEB_AREA, |
| 33 | 34 |
| 34 // These roles all directly correspond to WebKit accessibility roles, | 35 // These roles all directly correspond to WebKit accessibility roles, |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 std::vector<int32> cell_ids; | 297 std::vector<int32> cell_ids; |
| 297 | 298 |
| 298 // For a table, the unique cell ids in row-major order of their first | 299 // For a table, the unique cell ids in row-major order of their first |
| 299 // occurrence. | 300 // occurrence. |
| 300 std::vector<int32> unique_cell_ids; | 301 std::vector<int32> unique_cell_ids; |
| 301 }; | 302 }; |
| 302 | 303 |
| 303 } // namespace webkit_glue | 304 } // namespace webkit_glue |
| 304 | 305 |
| 305 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 306 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| OLD | NEW |