| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // Additional optional attributes that can be optionally attached to | 156 // Additional optional attributes that can be optionally attached to |
| 157 // a node. | 157 // a node. |
| 158 enum Attribute { | 158 enum Attribute { |
| 159 // Doc attributes: only make sense when applied to the top-level | 159 // Doc attributes: only make sense when applied to the top-level |
| 160 // Document node. | 160 // Document node. |
| 161 ATTR_DOC_URL, | 161 ATTR_DOC_URL, |
| 162 ATTR_DOC_TITLE, | 162 ATTR_DOC_TITLE, |
| 163 ATTR_DOC_MIMETYPE, | 163 ATTR_DOC_MIMETYPE, |
| 164 ATTR_DOC_DOCTYPE, | 164 ATTR_DOC_DOCTYPE, |
| 165 ATTR_DOC_SCROLLX, |
| 166 ATTR_DOC_SCROLLY, |
| 165 | 167 |
| 166 // Editable text attributes | 168 // Editable text attributes |
| 167 ATTR_TEXT_SEL_START, | 169 ATTR_TEXT_SEL_START, |
| 168 ATTR_TEXT_SEL_END, | 170 ATTR_TEXT_SEL_END, |
| 169 | 171 |
| 170 // Attributes that could apply to any node. | 172 // Attributes that could apply to any node. |
| 171 ATTR_ACTION, | 173 ATTR_ACTION, |
| 172 ATTR_DESCRIPTION, | 174 ATTR_DESCRIPTION, |
| 173 ATTR_DISPLAY, | 175 ATTR_DISPLAY, |
| 174 ATTR_HELP, | 176 ATTR_HELP, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 202 uint32 state; | 204 uint32 state; |
| 203 WebKit::WebRect location; | 205 WebKit::WebRect location; |
| 204 std::map<int32, string16> attributes; | 206 std::map<int32, string16> attributes; |
| 205 std::vector<WebAccessibility> children; | 207 std::vector<WebAccessibility> children; |
| 206 std::vector<std::pair<string16, string16> > html_attributes; | 208 std::vector<std::pair<string16, string16> > html_attributes; |
| 207 }; | 209 }; |
| 208 | 210 |
| 209 } // namespace webkit_glue | 211 } // namespace webkit_glue |
| 210 | 212 |
| 211 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 213 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| OLD | NEW |