| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void setPlaybackRate(double); | 70 void setPlaybackRate(double); |
| 71 const DocumentTimeline* timeline() const { return m_timeline; } | 71 const DocumentTimeline* timeline() const { return m_timeline; } |
| 72 DocumentTimeline* timeline() { return m_timeline; } | 72 DocumentTimeline* timeline() { return m_timeline; } |
| 73 | 73 |
| 74 void timelineDestroyed() { m_timeline = 0; } | 74 void timelineDestroyed() { m_timeline = 0; } |
| 75 | 75 |
| 76 bool hasStartTime() const { return !isNull(m_startTime); } | 76 bool hasStartTime() const { return !isNull(m_startTime); } |
| 77 double startTime() const { return m_startTime; } | 77 double startTime() const { return m_startTime; } |
| 78 void setStartTime(double); | 78 void setStartTime(double); |
| 79 | 79 |
| 80 const TimedItem* source() const { return m_content.get(); } |
| 80 TimedItem* source() { return m_content.get(); } | 81 TimedItem* source() { return m_content.get(); } |
| 81 TimedItem* source(bool& isNull) { isNull = !m_content; return m_content.get(
); } | 82 TimedItem* source(bool& isNull) { isNull = !m_content; return m_content.get(
); } |
| 82 void setSource(TimedItem*); | 83 void setSource(TimedItem*); |
| 83 | 84 |
| 84 double timeLag() { return currentTimeWithoutLag() - currentTime(); } | 85 double timeLag() { return currentTimeWithoutLag() - currentTime(); } |
| 85 | 86 |
| 86 // Pausing via this method is not reflected in the value returned by | 87 // Pausing via this method is not reflected in the value returned by |
| 87 // paused() and must never overlap with pausing via pause(). | 88 // paused() and must never overlap with pausing via pause(). |
| 88 void pauseForTesting(double pauseTime); | 89 void pauseForTesting(double pauseTime); |
| 89 // This should only be used for CSS | 90 // This should only be used for CSS |
| (...skipping 29 matching lines...) Expand all Loading... |
| 119 bool m_held; | 120 bool m_held; |
| 120 bool m_isPausedForTesting; | 121 bool m_isPausedForTesting; |
| 121 | 122 |
| 122 // This indicates timing information relevant to the player has changed | 123 // This indicates timing information relevant to the player has changed |
| 123 bool m_outdated; | 124 bool m_outdated; |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace | 127 } // namespace |
| 127 | 128 |
| 128 #endif | 129 #endif |
| OLD | NEW |