OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012, 2013 Apple 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 24 matching lines...) Expand all Loading... |
35 class Document; | 35 class Document; |
36 class InbandTextTrackPrivate; | 36 class InbandTextTrackPrivate; |
37 class MediaPlayer; | 37 class MediaPlayer; |
38 class TextTrackCue; | 38 class TextTrackCue; |
39 | 39 |
40 class InbandTextTrack : public TextTrack, public InbandTextTrackPrivateClient { | 40 class InbandTextTrack : public TextTrack, public InbandTextTrackPrivateClient { |
41 public: | 41 public: |
42 static PassRefPtr<InbandTextTrack> create(Document&, TextTrackClient*, PassR
efPtr<InbandTextTrackPrivate>); | 42 static PassRefPtr<InbandTextTrack> create(Document&, TextTrackClient*, PassR
efPtr<InbandTextTrackPrivate>); |
43 virtual ~InbandTextTrack(); | 43 virtual ~InbandTextTrack(); |
44 | 44 |
45 virtual bool isClosedCaptions() const OVERRIDE; | |
46 virtual bool containsOnlyForcedSubtitles() const OVERRIDE; | |
47 virtual bool isMainProgramContent() const OVERRIDE; | |
48 virtual bool isEasyToRead() const OVERRIDE; | |
49 virtual void setMode(const AtomicString&) OVERRIDE; | 45 virtual void setMode(const AtomicString&) OVERRIDE; |
50 size_t inbandTrackIndex(); | 46 size_t inbandTrackIndex(); |
51 void trackRemoved(); | 47 void trackRemoved(); |
52 | 48 |
53 private: | 49 private: |
54 InbandTextTrack(Document&, TextTrackClient*, PassRefPtr<InbandTextTrackPriva
te>); | 50 InbandTextTrack(Document&, TextTrackClient*, PassRefPtr<InbandTextTrackPriva
te>); |
55 | 51 |
56 virtual void addWebVTTCue(InbandTextTrackPrivate*, double, double, const Str
ing&, const String&, const String&) OVERRIDE; | 52 virtual void addWebVTTCue(InbandTextTrackPrivate*, double, double, const Str
ing&, const String&, const String&) OVERRIDE; |
57 | 53 |
58 RefPtr<InbandTextTrackPrivate> m_private; | 54 RefPtr<InbandTextTrackPrivate> m_private; |
59 }; | 55 }; |
60 | 56 |
61 } // namespace WebCore | 57 } // namespace WebCore |
62 | 58 |
63 #endif | 59 #endif |
OLD | NEW |