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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 STATE_LINKED, | 140 STATE_LINKED, |
141 STATE_MULTISELECTABLE, | 141 STATE_MULTISELECTABLE, |
142 STATE_OFFSCREEN, | 142 STATE_OFFSCREEN, |
143 STATE_PRESSED, | 143 STATE_PRESSED, |
144 STATE_PROTECTED, | 144 STATE_PROTECTED, |
145 STATE_READONLY, | 145 STATE_READONLY, |
146 STATE_TRAVERSED, | 146 STATE_TRAVERSED, |
147 STATE_UNAVAILABLE | 147 STATE_UNAVAILABLE |
148 }; | 148 }; |
149 | 149 |
| 150 // Additional optional attributes that can be optionally attached to |
| 151 // a node. |
150 enum Attribute { | 152 enum Attribute { |
| 153 // Doc attributes: only make sense when applied to the top-level |
| 154 // Document node. |
| 155 ATTR_DOC_URL, |
| 156 ATTR_DOC_TITLE, |
| 157 ATTR_DOC_MIMETYPE, |
| 158 ATTR_DOC_DOCTYPE, |
| 159 |
| 160 // Attributes that could apply to any node. |
151 ATTR_ACTION, | 161 ATTR_ACTION, |
152 ATTR_DESCRIPTION, | 162 ATTR_DESCRIPTION, |
| 163 ATTR_DISPLAY, |
153 ATTR_HELP, | 164 ATTR_HELP, |
154 ATTR_HTML_TAG, | 165 ATTR_HTML_TAG, |
155 ATTR_LINK_TARGET, | 166 ATTR_LINK_TARGET, |
156 ATTR_SHORTCUT, | 167 ATTR_SHORTCUT, |
157 NUM_ATTRIBUTES | 168 NUM_ATTRIBUTES |
158 }; | 169 }; |
159 | 170 |
160 // Empty constructor, for serialization. | 171 // Empty constructor, for serialization. |
161 WebAccessibility(); | 172 WebAccessibility(); |
162 | 173 |
(...skipping 12 matching lines...) Expand all Loading... |
175 // This is a simple serializable struct. All member variables should be | 186 // This is a simple serializable struct. All member variables should be |
176 // copyable. | 187 // copyable. |
177 int32 id; | 188 int32 id; |
178 string16 name; | 189 string16 name; |
179 string16 value; | 190 string16 value; |
180 Role role; | 191 Role role; |
181 uint32 state; | 192 uint32 state; |
182 WebKit::WebRect location; | 193 WebKit::WebRect location; |
183 std::map<int32, string16> attributes; | 194 std::map<int32, string16> attributes; |
184 std::vector<WebAccessibility> children; | 195 std::vector<WebAccessibility> children; |
| 196 std::vector<std::pair<string16, string16> > html_attributes; |
185 }; | 197 }; |
186 | 198 |
187 } // namespace webkit_glue | 199 } // namespace webkit_glue |
188 | 200 |
189 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 201 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
OLD | NEW |