| 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 28 matching lines...) Expand all Loading... |
| 39 class HTMLTrackElement final : public HTMLElement, private TextTrackLoaderClient
{ | 39 class HTMLTrackElement final : public HTMLElement, private TextTrackLoaderClient
{ |
| 40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
| 41 USING_GARBAGE_COLLECTED_MIXIN(HTMLTrackElement); | 41 USING_GARBAGE_COLLECTED_MIXIN(HTMLTrackElement); |
| 42 public: | 42 public: |
| 43 DECLARE_NODE_FACTORY(HTMLTrackElement); | 43 DECLARE_NODE_FACTORY(HTMLTrackElement); |
| 44 | 44 |
| 45 const AtomicString& kind(); | 45 const AtomicString& kind(); |
| 46 void setKind(const AtomicString&); | 46 void setKind(const AtomicString&); |
| 47 | 47 |
| 48 enum ReadyState { | 48 enum ReadyState { |
| 49 NONE = 0, | 49 kNone = 0, |
| 50 LOADING = 1, | 50 kLoading = 1, |
| 51 LOADED = 2, | 51 kLoaded = 2, |
| 52 TRACK_ERROR = 3 | 52 kError = 3 |
| 53 }; | 53 }; |
| 54 ReadyState getReadyState(); | 54 ReadyState getReadyState(); |
| 55 void scheduleLoad(); | 55 void scheduleLoad(); |
| 56 | 56 |
| 57 TextTrack* track(); | 57 TextTrack* track(); |
| 58 | 58 |
| 59 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 explicit HTMLTrackElement(Document&); | 62 explicit HTMLTrackElement(Document&); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 92 | 92 |
| 93 Member<LoadableTextTrack> m_track; | 93 Member<LoadableTextTrack> m_track; |
| 94 Member<TextTrackLoader> m_loader; | 94 Member<TextTrackLoader> m_loader; |
| 95 Timer<HTMLTrackElement> m_loadTimer; | 95 Timer<HTMLTrackElement> m_loadTimer; |
| 96 KURL m_url; | 96 KURL m_url; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace blink | 99 } // namespace blink |
| 100 | 100 |
| 101 #endif // HTMLTrackElement_h | 101 #endif // HTMLTrackElement_h |
| OLD | NEW |