| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|