| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 }; | 52 }; |
| 53 ReadyState readyState(); | 53 ReadyState readyState(); |
| 54 void scheduleLoad(); | 54 void scheduleLoad(); |
| 55 | 55 |
| 56 TextTrack* track(); | 56 TextTrack* track(); |
| 57 | 57 |
| 58 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 explicit HTMLTrackElement(Document&); | 61 explicit HTMLTrackElement(Document&); |
| 62 virtual ~HTMLTrackElement(); | 62 ~HTMLTrackElement() override; |
| 63 | 63 |
| 64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 64 void parseAttribute(const QualifiedName&, const AtomicString&) override; |
| 65 | 65 |
| 66 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 66 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 67 | 67 |
| 68 virtual void removedFrom(ContainerNode*) override; | 68 void removedFrom(ContainerNode*) override; |
| 69 virtual bool isURLAttribute(const Attribute&) const override; | 69 bool isURLAttribute(const Attribute&) const override; |
| 70 | 70 |
| 71 // TextTrackLoaderClient | 71 // TextTrackLoaderClient |
| 72 virtual void newCuesAvailable(TextTrackLoader*) override; | 72 void newCuesAvailable(TextTrackLoader*) override; |
| 73 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) overr
ide; | 73 void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) override; |
| 74 virtual void newRegionsAvailable(TextTrackLoader*) override; | 74 void newRegionsAvailable(TextTrackLoader*) override; |
| 75 | 75 |
| 76 void setReadyState(ReadyState); | 76 void setReadyState(ReadyState); |
| 77 | 77 |
| 78 const AtomicString& mediaElementCrossOriginAttribute() const; | 78 const AtomicString& mediaElementCrossOriginAttribute() const; |
| 79 bool canLoadUrl(const KURL&); | 79 bool canLoadUrl(const KURL&); |
| 80 void loadTimerFired(Timer<HTMLTrackElement>*); | 80 void loadTimerFired(Timer<HTMLTrackElement>*); |
| 81 | 81 |
| 82 enum LoadStatus { | 82 enum LoadStatus { |
| 83 Failure, | 83 Failure, |
| 84 Success | 84 Success |
| 85 }; | 85 }; |
| 86 void didCompleteLoad(LoadStatus); | 86 void didCompleteLoad(LoadStatus); |
| 87 | 87 |
| 88 HTMLMediaElement* mediaElement() const; | 88 HTMLMediaElement* mediaElement() const; |
| 89 | 89 |
| 90 LoadableTextTrack* ensureTrack(); | 90 LoadableTextTrack* ensureTrack(); |
| 91 | 91 |
| 92 RefPtrWillBeMember<LoadableTextTrack> m_track; | 92 RefPtrWillBeMember<LoadableTextTrack> m_track; |
| 93 OwnPtrWillBeMember<TextTrackLoader> m_loader; | 93 OwnPtrWillBeMember<TextTrackLoader> m_loader; |
| 94 Timer<HTMLTrackElement> m_loadTimer; | 94 Timer<HTMLTrackElement> m_loadTimer; |
| 95 KURL m_url; | 95 KURL m_url; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace blink | 98 } // namespace blink |
| 99 | 99 |
| 100 #endif // HTMLTrackElement_h | 100 #endif // HTMLTrackElement_h |
| OLD | NEW |