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

Side by Side Diff: Source/core/html/track/vtt/VTTElement.h

Issue 635793002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/html/track/vtt/VTTCue.h ('k') | Source/core/html/track/vtt/VTTParser.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 24 matching lines...) Expand all
35 VTTNodeTypeClass, 35 VTTNodeTypeClass,
36 VTTNodeTypeItalic, 36 VTTNodeTypeItalic,
37 VTTNodeTypeLanguage, 37 VTTNodeTypeLanguage,
38 VTTNodeTypeBold, 38 VTTNodeTypeBold,
39 VTTNodeTypeUnderline, 39 VTTNodeTypeUnderline,
40 VTTNodeTypeRuby, 40 VTTNodeTypeRuby,
41 VTTNodeTypeRubyText, 41 VTTNodeTypeRubyText,
42 VTTNodeTypeVoice 42 VTTNodeTypeVoice
43 }; 43 };
44 44
45 class VTTElement FINAL : public Element { 45 class VTTElement final : public Element {
46 public: 46 public:
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 value) { m_isPastNode = value; }
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 }
68 68
69 static const QualifiedName& langAttributeName() 69 static const QualifiedName& langAttributeName()
(...skipping 10 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/core/html/track/vtt/VTTCue.h ('k') | Source/core/html/track/vtt/VTTParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698