OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 WebAXDescriptionFromContents, | 333 WebAXDescriptionFromContents, |
334 WebAXDescriptionFromRelatedElement, | 334 WebAXDescriptionFromRelatedElement, |
335 }; | 335 }; |
336 | 336 |
337 // Text affinity for the start or end of a selection. | 337 // Text affinity for the start or end of a selection. |
338 enum WebAXTextAffinity { | 338 enum WebAXTextAffinity { |
339 WebAXTextAffinityUpstream, | 339 WebAXTextAffinityUpstream, |
340 WebAXTextAffinityDownstream | 340 WebAXTextAffinityDownstream |
341 }; | 341 }; |
342 | 342 |
| 343 // |
| 344 // Sparse accessibility attributes |
| 345 // |
| 346 // The following enums represent accessibility attributes that apply |
| 347 // to only a small fraction of WebAXObjects. Rather than the client |
| 348 // asking each WebAXObject for the value of each accessibility |
| 349 // attribute, it can call a single function to query for all |
| 350 // sparse attributes at the same time. Any sparse attributes that |
| 351 // are present are returned via a callback consisting of an attribute |
| 352 // key enum and an attribute value. |
| 353 // |
| 354 |
| 355 // Sparse attributes of a WebAXObject whose value is either true or |
| 356 // false. In order for it to be a sparse attribute the default value |
| 357 // must be false. |
| 358 enum class WebAXBoolAttribute {}; |
| 359 |
| 360 // Sparse attributes of a WebAXObject whose value is a string. |
| 361 // In order for it to be a sparse attribute the default value |
| 362 // must be "". |
| 363 enum class WebAXStringAttribute {}; |
| 364 |
| 365 // Sparse attributes of a WebAXObject whose value is a reference to |
| 366 // another WebAXObject within the same frame. In order for it to be a |
| 367 // sparse attribute the default value must be the null WebAXObject. |
| 368 enum class WebAXObjectAttribute { |
| 369 AriaActiveDescendant, |
| 370 }; |
| 371 |
| 372 // Sparse attributes of a WebAXObject whose value is a vector of |
| 373 // references to other WebAXObjects within the same frame. In order |
| 374 // for it to be a sparse attribute the default value must be the |
| 375 // empty vector. |
| 376 enum class WebAXObjectVectorAttribute { |
| 377 AriaControls, |
| 378 AriaFlowTo, |
| 379 }; |
| 380 |
343 } // namespace blink | 381 } // namespace blink |
344 | 382 |
345 #endif | 383 #endif |
OLD | NEW |