| 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 24 matching lines...) Expand all Loading... |
| 35 #include "wtf/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
| 36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 class Clock; | 40 class Clock; |
| 41 class HTMLMediaElement; | 41 class HTMLMediaElement; |
| 42 class Event; | 42 class Event; |
| 43 class ScriptExecutionContext; | 43 class ScriptExecutionContext; |
| 44 | 44 |
| 45 class MediaController : public RefCounted<MediaController>, public ScriptWrappab
le, public MediaControllerInterface, public EventTarget { | 45 class MediaController : public EventTarget, public RefCounted<MediaController>,
public ScriptWrappable, public MediaControllerInterface { |
| 46 public: | 46 public: |
| 47 static PassRefPtr<MediaController> create(ScriptExecutionContext*); | 47 static PassRefPtr<MediaController> create(ScriptExecutionContext*); |
| 48 virtual ~MediaController(); | 48 virtual ~MediaController(); |
| 49 | 49 |
| 50 void addMediaElement(HTMLMediaElement*); | 50 void addMediaElement(HTMLMediaElement*); |
| 51 void removeMediaElement(HTMLMediaElement*); | 51 void removeMediaElement(HTMLMediaElement*); |
| 52 bool containsMediaElement(HTMLMediaElement*) const; | 52 bool containsMediaElement(HTMLMediaElement*) const; |
| 53 | 53 |
| 54 const String& mediaGroup() const { return m_mediaGroup; } | 54 const String& mediaGroup() const { return m_mediaGroup; } |
| 55 | 55 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 bool m_closedCaptionsVisible; | 147 bool m_closedCaptionsVisible; |
| 148 PassRefPtr<Clock> m_clock; | 148 PassRefPtr<Clock> m_clock; |
| 149 ScriptExecutionContext* m_scriptExecutionContext; | 149 ScriptExecutionContext* m_scriptExecutionContext; |
| 150 Timer<MediaController> m_timeupdateTimer; | 150 Timer<MediaController> m_timeupdateTimer; |
| 151 double m_previousTimeupdateTime; | 151 double m_previousTimeupdateTime; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 } // namespace WebCore | 154 } // namespace WebCore |
| 155 | 155 |
| 156 #endif | 156 #endif |
| OLD | NEW |