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 21 matching lines...) Expand all Loading... |
32 WebVTTNodeTypeClass, | 32 WebVTTNodeTypeClass, |
33 WebVTTNodeTypeItalic, | 33 WebVTTNodeTypeItalic, |
34 WebVTTNodeTypeLanguage, | 34 WebVTTNodeTypeLanguage, |
35 WebVTTNodeTypeBold, | 35 WebVTTNodeTypeBold, |
36 WebVTTNodeTypeUnderline, | 36 WebVTTNodeTypeUnderline, |
37 WebVTTNodeTypeRuby, | 37 WebVTTNodeTypeRuby, |
38 WebVTTNodeTypeRubyText, | 38 WebVTTNodeTypeRubyText, |
39 WebVTTNodeTypeVoice | 39 WebVTTNodeTypeVoice |
40 }; | 40 }; |
41 | 41 |
42 class WebVTTElement : public Element { | 42 class WebVTTElement FINAL : public Element { |
43 public: | 43 public: |
44 static PassRefPtr<WebVTTElement> create(const WebVTTNodeType, Document*); | 44 static PassRefPtr<WebVTTElement> create(const WebVTTNodeType, Document*); |
45 static PassRefPtr<WebVTTElement> create(const QualifiedName&, Document*); | 45 static PassRefPtr<WebVTTElement> create(const QualifiedName&, Document*); |
46 PassRefPtr<HTMLElement> createEquivalentHTMLElement(Document*); | 46 PassRefPtr<HTMLElement> createEquivalentHTMLElement(Document*); |
47 | 47 |
48 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() OVERR
IDE; | 48 virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() OVERR
IDE; |
49 | 49 |
50 void setWebVTTNodeType(WebVTTNodeType type) { m_webVTTNodeType = static_cast
<unsigned>(type); } | 50 void setWebVTTNodeType(WebVTTNodeType type) { m_webVTTNodeType = static_cast
<unsigned>(type); } |
51 WebVTTNodeType webVTTNodeType() const { return static_cast<WebVTTNodeType>(m
_webVTTNodeType); } | 51 WebVTTNodeType webVTTNodeType() const { return static_cast<WebVTTNodeType>(m
_webVTTNodeType); } |
52 | 52 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isWebVTTElement()); | 84 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isWebVTTElement()); |
85 return static_cast<WebVTTElement*>(node); | 85 return static_cast<WebVTTElement*>(node); |
86 } | 86 } |
87 | 87 |
88 // This will catch anyone doing an unnecessary cast. | 88 // This will catch anyone doing an unnecessary cast. |
89 void toWebVTTElement(const WebVTTElement*); | 89 void toWebVTTElement(const WebVTTElement*); |
90 | 90 |
91 | 91 |
92 } // namespace WebCore | 92 } // namespace WebCore |
93 | 93 |
OLD | NEW |