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 25 matching lines...) Expand all Loading... |
36 VTTNodeTypeUnderline, | 36 VTTNodeTypeUnderline, |
37 VTTNodeTypeRuby, | 37 VTTNodeTypeRuby, |
38 VTTNodeTypeRubyText, | 38 VTTNodeTypeRubyText, |
39 VTTNodeTypeVoice | 39 VTTNodeTypeVoice |
40 }; | 40 }; |
41 | 41 |
42 class VTTElement FINAL : public Element { | 42 class VTTElement FINAL : public Element { |
43 public: | 43 public: |
44 static PassRefPtrWillBeRawPtr<VTTElement> create(const VTTNodeType, Document
*); | 44 static PassRefPtrWillBeRawPtr<VTTElement> create(const VTTNodeType, Document
*); |
45 static PassRefPtrWillBeRawPtr<VTTElement> create(const QualifiedName&, Docum
ent*); | 45 static PassRefPtrWillBeRawPtr<VTTElement> create(const QualifiedName&, Docum
ent*); |
46 PassRefPtr<HTMLElement> createEquivalentHTMLElement(Document&); | 46 PassRefPtrWillBeRawPtr<HTMLElement> createEquivalentHTMLElement(Document&); |
47 | 47 |
48 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren() OVERRIDE; | 48 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil
dren() OVERRIDE; |
49 | 49 |
50 void setVTTNodeType(VTTNodeType type) { m_webVTTNodeType = static_cast<unsig
ned>(type); } | 50 void setVTTNodeType(VTTNodeType type) { m_webVTTNodeType = static_cast<unsig
ned>(type); } |
51 VTTNodeType webVTTNodeType() const { return static_cast<VTTNodeType>(m_webVT
TNodeType); } | 51 VTTNodeType webVTTNodeType() const { return static_cast<VTTNodeType>(m_webVT
TNodeType); } |
52 | 52 |
53 bool isPastNode() const { return m_isPastNode; } | 53 bool isPastNode() const { return m_isPastNode; } |
54 void setIsPastNode(bool value) { m_isPastNode = value; } | 54 void setIsPastNode(bool value) { m_isPastNode = value; } |
55 | 55 |
56 virtual bool isVTTElement() const OVERRIDE { return true; } | 56 virtual bool isVTTElement() const OVERRIDE { return true; } |
(...skipping 19 matching lines...) Expand all Loading... |
76 unsigned m_isPastNode : 1; | 76 unsigned m_isPastNode : 1; |
77 unsigned m_webVTTNodeType : 4; | 77 unsigned m_webVTTNodeType : 4; |
78 | 78 |
79 AtomicString m_language; | 79 AtomicString m_language; |
80 }; | 80 }; |
81 | 81 |
82 DEFINE_ELEMENT_TYPE_CASTS(VTTElement, isVTTElement()); | 82 DEFINE_ELEMENT_TYPE_CASTS(VTTElement, isVTTElement()); |
83 | 83 |
84 } // namespace WebCore | 84 } // namespace WebCore |
85 | 85 |
OLD | NEW |