OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 if (cue->startTime() < existingCue->startTime() || (cue->startTime() ==
existingCue->startTime() && cue->endTime() > existingCue->endTime())) | 468 if (cue->startTime() < existingCue->startTime() || (cue->startTime() ==
existingCue->startTime() && cue->endTime() > existingCue->endTime())) |
469 searchEnd = index; | 469 searchEnd = index; |
470 else | 470 else |
471 searchStart = index + 1; | 471 searchStart = index + 1; |
472 } | 472 } |
473 | 473 |
474 ASSERT_NOT_REACHED(); | 474 ASSERT_NOT_REACHED(); |
475 return false; | 475 return false; |
476 } | 476 } |
477 | 477 |
478 bool TextTrack::isMainProgramContent() const | |
479 { | |
480 // "Main program" content is intrinsic to the presentation of the media file
, regardless of locale. Content such as | |
481 // directors commentary is not "main program" because it is not essential fo
r the presentation. HTML5 doesn't have | |
482 // a way to express this in a machine-reable form, it is typically done with
the track label, so we assume that caption | |
483 // tracks are main content and all other track types are not. | |
484 return m_kind == captionsKeyword(); | |
485 } | |
486 | |
487 const AtomicString& TextTrack::interfaceName() const | 478 const AtomicString& TextTrack::interfaceName() const |
488 { | 479 { |
489 return EventTargetNames::TextTrack; | 480 return EventTargetNames::TextTrack; |
490 } | 481 } |
491 | 482 |
492 ExecutionContext* TextTrack::executionContext() const | 483 ExecutionContext* TextTrack::executionContext() const |
493 { | 484 { |
494 return m_document; | 485 return m_document; |
495 } | 486 } |
496 | 487 |
497 } // namespace WebCore | 488 } // namespace WebCore |
498 | 489 |
OLD | NEW |