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

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

Issue 1219013005: Fix virtual/override/final usage in Source/core/html/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/InbandTextTrack.h ('k') | Source/core/html/track/TextTrack.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 22 matching lines...) Expand all
33 namespace blink { 33 namespace blink {
34 34
35 class HTMLTrackElement; 35 class HTMLTrackElement;
36 36
37 class LoadableTextTrack final : public TextTrack { 37 class LoadableTextTrack final : public TextTrack {
38 public: 38 public:
39 static PassRefPtrWillBeRawPtr<LoadableTextTrack> create(HTMLTrackElement* tr ack) 39 static PassRefPtrWillBeRawPtr<LoadableTextTrack> create(HTMLTrackElement* tr ack)
40 { 40 {
41 return adoptRefWillBeNoop(new LoadableTextTrack(track)); 41 return adoptRefWillBeNoop(new LoadableTextTrack(track));
42 } 42 }
43 virtual ~LoadableTextTrack(); 43 ~LoadableTextTrack() override;
44 44
45 // TextTrack method. 45 // TextTrack method.
46 virtual void setMode(const AtomicString&) override; 46 void setMode(const AtomicString&) override;
47 47
48 void addRegions(const WillBeHeapVector<RefPtrWillBeMember<VTTRegion>>&); 48 void addRegions(const WillBeHeapVector<RefPtrWillBeMember<VTTRegion>>&);
49 using TextTrack::addListOfCues; 49 using TextTrack::addListOfCues;
50 50
51 size_t trackElementIndex(); 51 size_t trackElementIndex();
52 HTMLTrackElement* trackElement() { return m_trackElement; } 52 HTMLTrackElement* trackElement() { return m_trackElement; }
53 #if !ENABLE(OILPAN) 53 #if !ENABLE(OILPAN)
54 void clearTrackElement(); 54 void clearTrackElement();
55 #endif 55 #endif
56 56
57 virtual bool isDefault() const override; 57 bool isDefault() const override;
58 58
59 DECLARE_VIRTUAL_TRACE(); 59 DECLARE_VIRTUAL_TRACE();
60 60
61 private: 61 private:
62 explicit LoadableTextTrack(HTMLTrackElement*); 62 explicit LoadableTextTrack(HTMLTrackElement*);
63 63
64 RawPtrWillBeMember<HTMLTrackElement> m_trackElement; 64 RawPtrWillBeMember<HTMLTrackElement> m_trackElement;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // LoadableTextTrack_h 69 #endif // LoadableTextTrack_h
OLDNEW
« no previous file with comments | « Source/core/html/track/InbandTextTrack.h ('k') | Source/core/html/track/TextTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698