| 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. | |
| 152 enum Attribute { | 150 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. | |
| 161 ATTR_ACTION, | 151 ATTR_ACTION, |
| 162 ATTR_DESCRIPTION, | 152 ATTR_DESCRIPTION, |
| 163 ATTR_DISPLAY, | |
| 164 ATTR_HELP, | 153 ATTR_HELP, |
| 165 ATTR_HTML_TAG, | 154 ATTR_HTML_TAG, |
| 166 ATTR_LINK_TARGET, | 155 ATTR_LINK_TARGET, |
| 167 ATTR_SHORTCUT, | 156 ATTR_SHORTCUT, |
| 168 NUM_ATTRIBUTES | 157 NUM_ATTRIBUTES |
| 169 }; | 158 }; |
| 170 | 159 |
| 171 // Empty constructor, for serialization. | 160 // Empty constructor, for serialization. |
| 172 WebAccessibility(); | 161 WebAccessibility(); |
| 173 | 162 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 184 // This is a simple serializable struct. All member variables should be | 173 // This is a simple serializable struct. All member variables should be |
| 185 // copyable. | 174 // copyable. |
| 186 int32 id; | 175 int32 id; |
| 187 string16 name; | 176 string16 name; |
| 188 string16 value; | 177 string16 value; |
| 189 Role role; | 178 Role role; |
| 190 uint32 state; | 179 uint32 state; |
| 191 WebKit::WebRect location; | 180 WebKit::WebRect location; |
| 192 std::map<int32, string16> attributes; | 181 std::map<int32, string16> attributes; |
| 193 std::vector<WebAccessibility> children; | 182 std::vector<WebAccessibility> children; |
| 194 std::vector<std::pair<string16, string16> > html_attributes; | |
| 195 }; | 183 }; |
| 196 | 184 |
| 197 } // namespace webkit_glue | 185 } // namespace webkit_glue |
| 198 | 186 |
| 199 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 187 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| OLD | NEW |