| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 { | 42 { |
| 43 ASSERT(track); | 43 ASSERT(track); |
| 44 track->setClient(this); | 44 track->setClient(this); |
| 45 } | 45 } |
| 46 | 46 |
| 47 InbandTextTrackPrivateImpl::~InbandTextTrackPrivateImpl() | 47 InbandTextTrackPrivateImpl::~InbandTextTrackPrivateImpl() |
| 48 { | 48 { |
| 49 m_track->setClient(0); | 49 m_track->setClient(0); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void InbandTextTrackPrivateImpl::setMode(Mode mode) | |
| 53 { | |
| 54 m_track->setMode(static_cast<WebInbandTextTrack::Mode>(mode)); | |
| 55 } | |
| 56 | |
| 57 WebCore::InbandTextTrackPrivate::Mode InbandTextTrackPrivateImpl::mode() const | |
| 58 { | |
| 59 return static_cast<WebCore::InbandTextTrackPrivate::Mode>(m_track->mode()); | |
| 60 } | |
| 61 | |
| 62 WebCore::InbandTextTrackPrivate::Kind InbandTextTrackPrivateImpl::kind() const | 52 WebCore::InbandTextTrackPrivate::Kind InbandTextTrackPrivateImpl::kind() const |
| 63 { | 53 { |
| 64 return static_cast<WebCore::InbandTextTrackPrivate::Kind>(m_track->kind()); | 54 return static_cast<WebCore::InbandTextTrackPrivate::Kind>(m_track->kind()); |
| 65 } | 55 } |
| 66 | 56 |
| 67 AtomicString InbandTextTrackPrivateImpl::label() const | 57 AtomicString InbandTextTrackPrivateImpl::label() const |
| 68 { | 58 { |
| 69 return m_track->label(); | 59 return m_track->label(); |
| 70 } | 60 } |
| 71 | 61 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 83 double start, | 73 double start, |
| 84 double end, | 74 double end, |
| 85 const WebString& id, | 75 const WebString& id, |
| 86 const WebString& content, | 76 const WebString& content, |
| 87 const WebString& settings) | 77 const WebString& settings) |
| 88 { | 78 { |
| 89 client()->addWebVTTCue(this, start, end, id, content, settings); | 79 client()->addWebVTTCue(this, start, end, id, content, settings); |
| 90 } | 80 } |
| 91 | 81 |
| 92 } // namespace WebKit | 82 } // namespace WebKit |
| OLD | NEW |