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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void parseAttribute(const AttributeModificationParams&) override; | 62 void parseAttribute(const AttributeModificationParams&) override; |
63 | 63 |
64 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 64 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
65 | 65 |
66 void removedFrom(ContainerNode*) override; | 66 void removedFrom(ContainerNode*) override; |
67 bool isURLAttribute(const Attribute&) const override; | 67 bool isURLAttribute(const Attribute&) const override; |
68 | 68 |
69 // TextTrackLoaderClient | 69 // TextTrackLoaderClient |
70 void newCuesAvailable(TextTrackLoader*) override; | 70 void newCuesAvailable(TextTrackLoader*) override; |
71 void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) override; | 71 void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) override; |
72 void newRegionsAvailable(TextTrackLoader*) override; | |
73 | 72 |
74 void setReadyState(ReadyState); | 73 void setReadyState(ReadyState); |
75 | 74 |
76 const AtomicString& mediaElementCrossOriginAttribute() const; | 75 const AtomicString& mediaElementCrossOriginAttribute() const; |
77 bool canLoadUrl(const KURL&); | 76 bool canLoadUrl(const KURL&); |
78 void loadTimerFired(TimerBase*); | 77 void loadTimerFired(TimerBase*); |
79 | 78 |
80 enum LoadStatus { Failure, Success }; | 79 enum LoadStatus { Failure, Success }; |
81 void didCompleteLoad(LoadStatus); | 80 void didCompleteLoad(LoadStatus); |
82 | 81 |
83 HTMLMediaElement* mediaElement() const; | 82 HTMLMediaElement* mediaElement() const; |
84 | 83 |
85 LoadableTextTrack* ensureTrack(); | 84 LoadableTextTrack* ensureTrack(); |
86 | 85 |
87 Member<LoadableTextTrack> m_track; | 86 Member<LoadableTextTrack> m_track; |
88 Member<TextTrackLoader> m_loader; | 87 Member<TextTrackLoader> m_loader; |
89 TaskRunnerTimer<HTMLTrackElement> m_loadTimer; | 88 TaskRunnerTimer<HTMLTrackElement> m_loadTimer; |
90 KURL m_url; | 89 KURL m_url; |
91 }; | 90 }; |
92 | 91 |
93 } // namespace blink | 92 } // namespace blink |
94 | 93 |
95 #endif // HTMLTrackElement_h | 94 #endif // HTMLTrackElement_h |
OLD | NEW |