OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 RefPtr<TextTrack> defaultTrack; | 225 RefPtr<TextTrack> defaultTrack; |
226 GroupKind kind; | 226 GroupKind kind; |
227 bool hasSrcLang; | 227 bool hasSrcLang; |
228 }; | 228 }; |
229 | 229 |
230 void configureTextTrackGroupForLanguage(const TrackGroup&) const; | 230 void configureTextTrackGroupForLanguage(const TrackGroup&) const; |
231 void configureTextTracks(); | 231 void configureTextTracks(); |
232 void configureTextTrackGroup(const TrackGroup&); | 232 void configureTextTrackGroup(const TrackGroup&); |
233 | 233 |
234 bool textTracksAreReady() const; | 234 bool textTracksAreReady() const; |
235 void configureTextTrackDisplay(); | 235 enum ConfigureTextTrackDisplayFlags { |
236 DoNotAssumeVisibleTextTracksChanged, | |
acolwell GONE FROM CHROMIUM
2013/08/12 20:19:02
nit: Flags doesn't seem appropriate here since the
vcarbune.chromium
2013/08/19 22:20:12
Done. Minimally, this could have been a boolean pa
| |
237 AssumeVisibleTextTracksChanged | |
238 }; | |
239 void configureTextTrackDisplay(ConfigureTextTrackDisplayFlags = DoNotAssumeV isibleTextTracksChanged); | |
acolwell GONE FROM CHROMIUM
2013/08/12 20:19:02
nit: Do you really need the default argument value
vcarbune.chromium
2013/08/19 22:20:12
No, explicitly passed it at each function call.
| |
236 void updateTextTrackDisplay(); | 240 void updateTextTrackDisplay(); |
237 | 241 |
238 // TextTrackClient | 242 // TextTrackClient |
239 virtual void textTrackReadyStateChanged(TextTrack*); | 243 virtual void textTrackReadyStateChanged(TextTrack*); |
240 virtual void textTrackKindChanged(TextTrack*); | 244 virtual void textTrackKindChanged(TextTrack*); |
241 virtual void textTrackModeChanged(TextTrack*); | 245 virtual void textTrackModeChanged(TextTrack*); |
242 virtual void textTrackAddCues(TextTrack*, const TextTrackCueList*); | 246 virtual void textTrackAddCues(TextTrack*, const TextTrackCueList*); |
243 virtual void textTrackRemoveCues(TextTrack*, const TextTrackCueList*); | 247 virtual void textTrackRemoveCues(TextTrack*, const TextTrackCueList*); |
244 virtual void textTrackAddCue(TextTrack*, PassRefPtr<TextTrackCue>); | 248 virtual void textTrackAddCue(TextTrack*, PassRefPtr<TextTrackCue>); |
245 virtual void textTrackRemoveCue(TextTrack*, PassRefPtr<TextTrackCue>); | 249 virtual void textTrackRemoveCue(TextTrack*, PassRefPtr<TextTrackCue>); |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
607 | 611 |
608 inline HTMLMediaElement* toMediaElement(Node* node) | 612 inline HTMLMediaElement* toMediaElement(Node* node) |
609 { | 613 { |
610 ASSERT_WITH_SECURITY_IMPLICATION(!node || isMediaElement(node)); | 614 ASSERT_WITH_SECURITY_IMPLICATION(!node || isMediaElement(node)); |
611 return static_cast<HTMLMediaElement*>(node); | 615 return static_cast<HTMLMediaElement*>(node); |
612 } | 616 } |
613 | 617 |
614 } //namespace | 618 } //namespace |
615 | 619 |
616 #endif | 620 #endif |
OLD | NEW |