| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class ExecutionContext; | 43 class ExecutionContext; |
| 44 | 44 |
| 45 class MediaController FINAL : public RefCounted<MediaController>, public ScriptW
rappable, public EventTargetWithInlineData { | 45 class MediaController FINAL : public RefCounted<MediaController>, public ScriptW
rappable, public EventTargetWithInlineData { |
| 46 REFCOUNTED_EVENT_TARGET(MediaController); | 46 REFCOUNTED_EVENT_TARGET(MediaController); |
| 47 public: | 47 public: |
| 48 static PassRefPtr<MediaController> create(ExecutionContext*); | 48 static PassRefPtr<MediaController> create(ExecutionContext*); |
| 49 virtual ~MediaController(); | 49 virtual ~MediaController(); |
| 50 | 50 |
| 51 void addMediaElement(HTMLMediaElement*); | 51 void addMediaElement(HTMLMediaElement*); |
| 52 void removeMediaElement(HTMLMediaElement*); | 52 void removeMediaElement(HTMLMediaElement*); |
| 53 bool containsMediaElement(HTMLMediaElement*) const; | |
| 54 | 53 |
| 55 PassRefPtr<TimeRanges> buffered() const; | 54 PassRefPtr<TimeRanges> buffered() const; |
| 56 PassRefPtr<TimeRanges> seekable() const; | 55 PassRefPtr<TimeRanges> seekable() const; |
| 57 PassRefPtr<TimeRanges> played(); | 56 PassRefPtr<TimeRanges> played(); |
| 58 | 57 |
| 59 double duration() const; | 58 double duration() const; |
| 60 double currentTime() const; | 59 double currentTime() const; |
| 61 void setCurrentTime(double, ExceptionState&); | 60 void setCurrentTime(double, ExceptionState&); |
| 62 | 61 |
| 63 bool paused() const { return m_paused; } | 62 bool paused() const { return m_paused; } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 mutable Timer<MediaController> m_clearPositionTimer; | 121 mutable Timer<MediaController> m_clearPositionTimer; |
| 123 OwnPtr<Clock> m_clock; | 122 OwnPtr<Clock> m_clock; |
| 124 ExecutionContext* m_executionContext; | 123 ExecutionContext* m_executionContext; |
| 125 Timer<MediaController> m_timeupdateTimer; | 124 Timer<MediaController> m_timeupdateTimer; |
| 126 double m_previousTimeupdateTime; | 125 double m_previousTimeupdateTime; |
| 127 }; | 126 }; |
| 128 | 127 |
| 129 } // namespace WebCore | 128 } // namespace WebCore |
| 130 | 129 |
| 131 #endif | 130 #endif |
| OLD | NEW |