| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 WebAXDescriptionFromContents, | 331 WebAXDescriptionFromContents, |
| 332 WebAXDescriptionFromRelatedElement, | 332 WebAXDescriptionFromRelatedElement, |
| 333 }; | 333 }; |
| 334 | 334 |
| 335 // Text affinity for the start or end of a selection. | 335 // Text affinity for the start or end of a selection. |
| 336 enum WebAXTextAffinity { | 336 enum WebAXTextAffinity { |
| 337 WebAXTextAffinityUpstream, | 337 WebAXTextAffinityUpstream, |
| 338 WebAXTextAffinityDownstream | 338 WebAXTextAffinityDownstream |
| 339 }; | 339 }; |
| 340 | 340 |
| 341 // |
| 342 // Sparse accessibility attributes |
| 343 // |
| 344 // The following enums represent accessibility attributes that apply |
| 345 // to only a small fraction of WebAXObjects. Rather than the client |
| 346 // asking each WebAXObject for the value of each accessibility |
| 347 // attribute, it can call a single function to query for all |
| 348 // sparse attributes at the same time. Any sparse attributes that |
| 349 // are present are returned via a callback consisting of an attribute |
| 350 // key enum and an attribute value. |
| 351 // |
| 352 |
| 353 // Sparse attributes of a WebAXObject whose value is either true or |
| 354 // false. In order for it to be a sparse attribute the default value |
| 355 // must be false. |
| 356 enum class WebAXBoolAttribute { |
| 357 AriaModal, |
| 358 }; |
| 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 AriaKeyShortcuts, |
| 365 AriaRoleDescription, |
| 366 }; |
| 367 |
| 368 // Sparse attributes of a WebAXObject whose value is a reference to |
| 369 // another WebAXObject within the same frame. In order for it to be a |
| 370 // sparse attribute the default value must be the null WebAXObject. |
| 371 enum class WebAXObjectAttribute { |
| 372 AriaActiveDescendant, |
| 373 AriaErrorMessage, |
| 374 }; |
| 375 |
| 376 // Sparse attributes of a WebAXObject whose value is a vector of |
| 377 // references to other WebAXObjects within the same frame. In order |
| 378 // for it to be a sparse attribute the default value must be the |
| 379 // empty vector. |
| 380 enum class WebAXObjectVectorAttribute { |
| 381 AriaControls, |
| 382 AriaDetails, |
| 383 AriaFlowTo, |
| 384 }; |
| 385 |
| 341 } // namespace blink | 386 } // namespace blink |
| 342 | 387 |
| 343 #endif | 388 #endif |
| OLD | NEW |