| 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 VisibilityChangeAssumption { |
| 236 AssumeNoVisibleChange, |
| 237 AssumeVisibleChange |
| 238 }; |
| 239 void configureTextTrackDisplay(VisibilityChangeAssumption); |
| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 | 612 |
| 609 inline HTMLMediaElement* toHTMLMediaElement(Node* node) | 613 inline HTMLMediaElement* toHTMLMediaElement(Node* node) |
| 610 { | 614 { |
| 611 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); | 615 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); |
| 612 return static_cast<HTMLMediaElement*>(node); | 616 return static_cast<HTMLMediaElement*>(node); |
| 613 } | 617 } |
| 614 | 618 |
| 615 } //namespace | 619 } //namespace |
| 616 | 620 |
| 617 #endif | 621 #endif |
| OLD | NEW |