| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 AccessibilityRole AXProgressIndicator::roleValue() const | 43 AccessibilityRole AXProgressIndicator::roleValue() const |
| 44 { | 44 { |
| 45 AccessibilityRole ariaRole = ariaRoleAttribute(); | 45 AccessibilityRole ariaRole = ariaRoleAttribute(); |
| 46 if (ariaRole != UnknownRole) | 46 if (ariaRole != UnknownRole) |
| 47 return ariaRole; | 47 return ariaRole; |
| 48 return ProgressIndicatorRole; | 48 return ProgressIndicatorRole; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool AXProgressIndicator::computeAccessibilityIsIgnored() const | 51 bool AXProgressIndicator::computeAccessibilityIsIgnored(PassRefPtr<TypeBuilder::
Array<TypeBuilder::Accessibility::AXProperty>> ignoredReasons) const |
| 52 { | 52 { |
| 53 return accessibilityIsIgnoredByDefault(); | 53 return accessibilityIsIgnoredByDefault(ignoredReasons); |
| 54 } | 54 } |
| 55 | 55 |
| 56 float AXProgressIndicator::valueForRange() const | 56 float AXProgressIndicator::valueForRange() const |
| 57 { | 57 { |
| 58 if (hasAttribute(aria_valuenowAttr)) | 58 if (hasAttribute(aria_valuenowAttr)) |
| 59 return getAttribute(aria_valuenowAttr).toFloat(); | 59 return getAttribute(aria_valuenowAttr).toFloat(); |
| 60 | 60 |
| 61 if (element()->position() >= 0) | 61 if (element()->position() >= 0) |
| 62 return narrowPrecisionToFloat(element()->value()); | 62 return narrowPrecisionToFloat(element()->value()); |
| 63 // Indeterminate progress bar should return 0. | 63 // Indeterminate progress bar should return 0. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 80 return 0.0f; | 80 return 0.0f; |
| 81 } | 81 } |
| 82 | 82 |
| 83 HTMLProgressElement* AXProgressIndicator::element() const | 83 HTMLProgressElement* AXProgressIndicator::element() const |
| 84 { | 84 { |
| 85 return toLayoutProgress(m_layoutObject)->progressElement(); | 85 return toLayoutProgress(m_layoutObject)->progressElement(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| OLD | NEW |