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

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

Issue 832763002: Expose attributes max, min, value for meter html tag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | no next file » | 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 || supportsARIADragging() 418 || supportsARIADragging()
419 || supportsARIADropping() 419 || supportsARIADropping()
420 || supportsARIAFlowTo() 420 || supportsARIAFlowTo()
421 || supportsARIAOwns() 421 || supportsARIAOwns()
422 || hasAttribute(aria_labelAttr); 422 || hasAttribute(aria_labelAttr);
423 } 423 }
424 424
425 bool AXObject::supportsRangeValue() const 425 bool AXObject::supportsRangeValue() const
426 { 426 {
427 return isProgressIndicator() 427 return isProgressIndicator()
428 || isMeter()
428 || isSlider() 429 || isSlider()
429 || isScrollbar() 430 || isScrollbar()
430 || isSpinButton(); 431 || isSpinButton();
431 } 432 }
432 433
433 void AXObject::ariaTreeRows(AccessibilityChildrenVector& result) 434 void AXObject::ariaTreeRows(AccessibilityChildrenVector& result)
434 { 435 {
435 AccessibilityChildrenVector axChildren = children(); 436 AccessibilityChildrenVector axChildren = children();
436 unsigned count = axChildren.size(); 437 unsigned count = axChildren.size();
437 for (unsigned k = 0; k < count; ++k) { 438 for (unsigned k = 0; k < count; ++k) {
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 } 971 }
971 972
972 const AtomicString& AXObject::roleName(AccessibilityRole role) 973 const AtomicString& AXObject::roleName(AccessibilityRole role)
973 { 974 {
974 static const Vector<AtomicString>* roleNameVector = createRoleNameVector(); 975 static const Vector<AtomicString>* roleNameVector = createRoleNameVector();
975 976
976 return roleNameVector->at(role); 977 return roleNameVector->at(role);
977 } 978 }
978 979
979 } // namespace blink 980 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698