| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 virtual bool isDefault() const OVERRIDE { return m_isDefault; } | 61 virtual bool isDefault() const OVERRIDE { return m_isDefault; } |
| 62 virtual void setIsDefault(bool isDefault) OVERRIDE { m_isDefault = isDefaul
t; } | 62 virtual void setIsDefault(bool isDefault) OVERRIDE { m_isDefault = isDefaul
t; } |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 // TextTrackLoaderClient | 65 // TextTrackLoaderClient |
| 66 virtual bool shouldLoadCues(TextTrackLoader*) { return true; } | 66 virtual bool shouldLoadCues(TextTrackLoader*) { return true; } |
| 67 virtual void newCuesAvailable(TextTrackLoader*); | 67 virtual void newCuesAvailable(TextTrackLoader*); |
| 68 virtual void cueLoadingStarted(TextTrackLoader*); | 68 virtual void cueLoadingStarted(TextTrackLoader*); |
| 69 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed); | 69 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed); |
| 70 #if ENABLE(WEBVTT_REGIONS) | |
| 71 virtual void newRegionsAvailable(TextTrackLoader*); | 70 virtual void newRegionsAvailable(TextTrackLoader*); |
| 72 #endif | |
| 73 | 71 |
| 74 LoadableTextTrack(HTMLTrackElement*, const String& kind, const String& label
, const String& language); | 72 LoadableTextTrack(HTMLTrackElement*, const String& kind, const String& label
, const String& language); |
| 75 | 73 |
| 76 void loadTimerFired(Timer<LoadableTextTrack>*); | 74 void loadTimerFired(Timer<LoadableTextTrack>*); |
| 77 | 75 |
| 78 HTMLTrackElement* m_trackElement; | 76 HTMLTrackElement* m_trackElement; |
| 79 Timer<LoadableTextTrack> m_loadTimer; | 77 Timer<LoadableTextTrack> m_loadTimer; |
| 80 OwnPtr<TextTrackLoader> m_loader; | 78 OwnPtr<TextTrackLoader> m_loader; |
| 81 KURL m_url; | 79 KURL m_url; |
| 82 bool m_isDefault; | 80 bool m_isDefault; |
| 83 }; | 81 }; |
| 84 } // namespace WebCore | 82 } // namespace WebCore |
| 85 | 83 |
| 86 #endif | 84 #endif |
| OLD | NEW |