OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 static PassRefPtrWillBeRawPtr<VTTElement> create(const VTTNodeType, Document
*); | 47 static PassRefPtrWillBeRawPtr<VTTElement> create(const VTTNodeType, Document
*); |
48 static PassRefPtrWillBeRawPtr<VTTElement> create(const QualifiedName&, Docum
ent*); | 48 static PassRefPtrWillBeRawPtr<VTTElement> create(const QualifiedName&, Docum
ent*); |
49 PassRefPtrWillBeRawPtr<HTMLElement> createEquivalentHTMLElement(Document&); | 49 PassRefPtrWillBeRawPtr<HTMLElement> createEquivalentHTMLElement(Document&); |
50 | 50 |
51 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren() override; | 51 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren() override; |
52 | 52 |
53 void setVTTNodeType(VTTNodeType type) { m_webVTTNodeType = static_cast<unsig
ned>(type); } | 53 void setVTTNodeType(VTTNodeType type) { m_webVTTNodeType = static_cast<unsig
ned>(type); } |
54 VTTNodeType webVTTNodeType() const { return static_cast<VTTNodeType>(m_webVT
TNodeType); } | 54 VTTNodeType webVTTNodeType() const { return static_cast<VTTNodeType>(m_webVT
TNodeType); } |
55 | 55 |
56 bool isPastNode() const { return m_isPastNode; } | 56 bool isPastNode() const { return m_isPastNode; } |
57 void setIsPastNode(bool value) { m_isPastNode = value; } | 57 void setIsPastNode(bool); |
58 | 58 |
59 virtual bool isVTTElement() const override { return true; } | 59 virtual bool isVTTElement() const override { return true; } |
60 AtomicString language() const { return m_language; } | 60 AtomicString language() const { return m_language; } |
61 void setLanguage(AtomicString value) { m_language = value; } | 61 void setLanguage(AtomicString value) { m_language = value; } |
62 | 62 |
63 static const QualifiedName& voiceAttributeName() | 63 static const QualifiedName& voiceAttributeName() |
64 { | 64 { |
65 DEFINE_STATIC_LOCAL(QualifiedName, voiceAttr, (nullAtom, "voice", nullAt
om)); | 65 DEFINE_STATIC_LOCAL(QualifiedName, voiceAttr, (nullAtom, "voice", nullAt
om)); |
66 return voiceAttr; | 66 return voiceAttr; |
67 } | 67 } |
(...skipping 12 matching lines...) Expand all Loading... |
80 unsigned m_webVTTNodeType : 4; | 80 unsigned m_webVTTNodeType : 4; |
81 | 81 |
82 AtomicString m_language; | 82 AtomicString m_language; |
83 }; | 83 }; |
84 | 84 |
85 DEFINE_ELEMENT_TYPE_CASTS(VTTElement, isVTTElement()); | 85 DEFINE_ELEMENT_TYPE_CASTS(VTTElement, isVTTElement()); |
86 | 86 |
87 } // namespace blink | 87 } // namespace blink |
88 | 88 |
89 #endif // VTTElement_h | 89 #endif // VTTElement_h |
OLD | NEW |