Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: Source/core/accessibility/AXObject.cpp

Issue 243083002: Remove more dead code from accessibility/ folder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/core/accessibility/AXRenderObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 bool AXObject::ariaIsMultiline() const 397 bool AXObject::ariaIsMultiline() const
398 { 398 {
399 return equalIgnoringCase(getAttribute(aria_multilineAttr), "true"); 399 return equalIgnoringCase(getAttribute(aria_multilineAttr), "true");
400 } 400 }
401 401
402 bool AXObject::ariaPressedIsPresent() const 402 bool AXObject::ariaPressedIsPresent() const
403 { 403 {
404 return !getAttribute(aria_pressedAttr).isEmpty(); 404 return !getAttribute(aria_pressedAttr).isEmpty();
405 } 405 }
406 406
407 const AtomicString& AXObject::invalidStatus() const
408 {
409 DEFINE_STATIC_LOCAL(const AtomicString, invalidStatusFalse, ("false", Atomic String::ConstructFromLiteral));
410
411 // aria-invalid can return false (default), grammer, spelling, or true.
412 const AtomicString& ariaInvalid = getAttribute(aria_invalidAttr);
413
414 // If empty or not present, it should return false.
415 if (ariaInvalid.isEmpty())
416 return invalidStatusFalse;
417
418 return ariaInvalid;
419 }
420
421 bool AXObject::supportsARIAAttributes() const 407 bool AXObject::supportsARIAAttributes() const
422 { 408 {
423 return supportsARIALiveRegion() 409 return supportsARIALiveRegion()
424 || supportsARIADragging() 410 || supportsARIADragging()
425 || supportsARIADropping() 411 || supportsARIADropping()
426 || supportsARIAFlowTo() 412 || supportsARIAFlowTo()
427 || supportsARIAOwns() 413 || supportsARIAOwns()
428 || hasAttribute(aria_labelAttr); 414 || hasAttribute(aria_labelAttr);
429 } 415 }
430 416
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 return ToggleButtonRole; 893 return ToggleButtonRole;
908 if (ariaHasPopup()) 894 if (ariaHasPopup())
909 return PopUpButtonRole; 895 return PopUpButtonRole;
910 // We don't contemplate RadioButtonRole, as it depends on the input 896 // We don't contemplate RadioButtonRole, as it depends on the input
911 // type. 897 // type.
912 898
913 return ButtonRole; 899 return ButtonRole;
914 } 900 }
915 901
916 } // namespace WebCore 902 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/core/accessibility/AXRenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698