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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2589273002: Add sparse accessibility attribute interface to Blink (Closed)
Patch Set: Address feedback Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 1230
1231 return AXNodeObject::textAlternative(recursive, inAriaLabelledByTraversal, 1231 return AXNodeObject::textAlternative(recursive, inAriaLabelledByTraversal,
1232 visited, nameFrom, relatedObjects, 1232 visited, nameFrom, relatedObjects,
1233 nameSources); 1233 nameSources);
1234 } 1234 }
1235 1235
1236 // 1236 //
1237 // ARIA attributes. 1237 // ARIA attributes.
1238 // 1238 //
1239 1239
1240 void AXLayoutObject::ariaFlowToElements(AXObjectVector& flowTo) const {
1241 accessibilityChildrenFromAttribute(aria_flowtoAttr, flowTo);
1242 }
1243
1244 void AXLayoutObject::ariaControlsElements(AXObjectVector& controls) const {
1245 accessibilityChildrenFromAttribute(aria_controlsAttr, controls);
1246 }
1247
1248 void AXLayoutObject::ariaOwnsElements(AXObjectVector& owns) const { 1240 void AXLayoutObject::ariaOwnsElements(AXObjectVector& owns) const {
1249 accessibilityChildrenFromAttribute(aria_ownsAttr, owns); 1241 accessibilityChildrenFromAttribute(aria_ownsAttr, owns);
1250 } 1242 }
1251 1243
1252 void AXLayoutObject::ariaDescribedbyElements( 1244 void AXLayoutObject::ariaDescribedbyElements(
1253 AXObjectVector& describedby) const { 1245 AXObjectVector& describedby) const {
1254 accessibilityChildrenFromAttribute(aria_describedbyAttr, describedby); 1246 accessibilityChildrenFromAttribute(aria_describedbyAttr, describedby);
1255 } 1247 }
1256 1248
1257 void AXLayoutObject::ariaLabelledbyElements(AXObjectVector& labelledby) const { 1249 void AXLayoutObject::ariaLabelledbyElements(AXObjectVector& labelledby) const {
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 2481
2490 bool AXLayoutObject::elementAttributeValue( 2482 bool AXLayoutObject::elementAttributeValue(
2491 const QualifiedName& attributeName) const { 2483 const QualifiedName& attributeName) const {
2492 if (!m_layoutObject) 2484 if (!m_layoutObject)
2493 return false; 2485 return false;
2494 2486
2495 return equalIgnoringCase(getAttribute(attributeName), "true"); 2487 return equalIgnoringCase(getAttribute(attributeName), "true");
2496 } 2488 }
2497 2489
2498 } // namespace blink 2490 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698