| 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 | 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "core/html/track/LoadableTextTrack.h" | 26 #include "core/html/track/LoadableTextTrack.h" |
| 27 | 27 |
| 28 #include "core/dom/ElementTraversal.h" | 28 #include "core/dom/ElementTraversal.h" |
| 29 #include "core/html/HTMLTrackElement.h" | 29 #include "core/html/HTMLTrackElement.h" |
| 30 #include "core/html/track/vtt/VTTRegionList.h" | 30 #include "core/html/track/vtt/VTTRegionList.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 LoadableTextTrack::LoadableTextTrack(HTMLTrackElement* track) | 34 LoadableTextTrack::LoadableTextTrack(HTMLTrackElement* track) |
| 35 : TextTrack(emptyAtom, emptyAtom, emptyAtom, emptyAtom, TrackElement) | 35 : TextTrack(subtitlesKeyword(), emptyAtom, emptyAtom, emptyAtom, TrackElemen
t) |
| 36 , m_trackElement(track) | 36 , m_trackElement(track) |
| 37 { | 37 { |
| 38 } | 38 } |
| 39 | 39 |
| 40 LoadableTextTrack::~LoadableTextTrack() | 40 LoadableTextTrack::~LoadableTextTrack() |
| 41 { | 41 { |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool LoadableTextTrack::isDefault() const | 44 bool LoadableTextTrack::isDefault() const |
| 45 { | 45 { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 return 0; | 80 return 0; |
| 81 } | 81 } |
| 82 | 82 |
| 83 DEFINE_TRACE(LoadableTextTrack) | 83 DEFINE_TRACE(LoadableTextTrack) |
| 84 { | 84 { |
| 85 visitor->trace(m_trackElement); | 85 visitor->trace(m_trackElement); |
| 86 TextTrack::trace(visitor); | 86 TextTrack::trace(visitor); |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| OLD | NEW |