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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 class WebVTTParserClient { | 49 class WebVTTParserClient { |
50 public: | 50 public: |
51 virtual ~WebVTTParserClient() { } | 51 virtual ~WebVTTParserClient() { } |
52 | 52 |
53 virtual void newCuesParsed() = 0; | 53 virtual void newCuesParsed() = 0; |
54 virtual void newRegionsParsed() = 0; | 54 virtual void newRegionsParsed() = 0; |
55 virtual void fileFailedToParse() = 0; | 55 virtual void fileFailedToParse() = 0; |
56 }; | 56 }; |
57 | 57 |
58 class WebVTTParser { | 58 class WebVTTParser FINAL { |
59 public: | 59 public: |
60 enum ParseState { | 60 enum ParseState { |
61 Initial, | 61 Initial, |
62 Header, | 62 Header, |
63 Id, | 63 Id, |
64 TimingsAndSettings, | 64 TimingsAndSettings, |
65 CueText, | 65 CueText, |
66 BadCue | 66 BadCue |
67 }; | 67 }; |
68 | 68 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 Vector<AtomicString> m_languageStack; | 152 Vector<AtomicString> m_languageStack; |
153 Vector<RefPtr<TextTrackCue> > m_cuelist; | 153 Vector<RefPtr<TextTrackCue> > m_cuelist; |
154 | 154 |
155 Vector<RefPtr<TextTrackRegion> > m_regionList; | 155 Vector<RefPtr<TextTrackRegion> > m_regionList; |
156 }; | 156 }; |
157 | 157 |
158 } // namespace WebCore | 158 } // namespace WebCore |
159 | 159 |
160 #endif | 160 #endif |
OLD | NEW |