Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: Source/core/html/track/WebVTTElement.h

Issue 14022022: FINALizing of the Node hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Action review comments. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/TextTrackCueGeneric.cpp ('k') | Source/core/loader/SinkDocument.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCueGeneric.cpp ('k') | Source/core/loader/SinkDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698