Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: Source/core/html/track/TextTrack.cpp

Issue 59913005: Remove unused TextTrack virtual functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrack.h ('k') | Source/platform/graphics/media/InbandTextTrackPrivate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698