예제 #1
0
bool AudioTrack::isValidKind(const AtomicString& kind) const
{
    return (kind == alternativeKeyword())
        || (kind == descriptionsKeyword())
        || (kind == mainKeyword())
        || (kind == mainDescriptionsKeyword())
        || (kind == translationKeyword())
        || (kind == commentaryKeyword());
}
예제 #2
0
bool AudioTrack::isValidKind(const AtomicString& value) const
{
    if (value == alternativeKeyword())
        return true;
    if (value == descriptionKeyword())
        return true;
    if (value == mainKeyword())
        return true;
    if (value == mainDescKeyword())
        return true;
    if (value == translationKeyword())
        return true;
    if (value == commentaryKeyword())
        return true;

    return false;
}