| 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 23 matching lines...) Expand all Loading... |
| 34 #include "platform/Timer.h" | 34 #include "platform/Timer.h" |
| 35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class Clock; | 41 class Clock; |
| 42 class Event; | 42 class Event; |
| 43 class ExceptionState; | 43 class ExceptionState; |
| 44 class HTMLMediaElement; | |
| 45 class ExecutionContext; | 44 class ExecutionContext; |
| 46 | 45 |
| 47 class MediaController FINAL : public RefCounted<MediaController>, public ScriptW
rappable, public MediaControllerInterface, public EventTargetWithInlineData { | 46 class MediaController FINAL : public RefCounted<MediaController>, public ScriptW
rappable, public MediaControllerInterface, public EventTargetWithInlineData { |
| 48 REFCOUNTED_EVENT_TARGET(MediaController); | 47 REFCOUNTED_EVENT_TARGET(MediaController); |
| 49 public: | 48 public: |
| 50 static PassRefPtr<MediaController> create(ExecutionContext*); | 49 static PassRefPtr<MediaController> create(ExecutionContext*); |
| 51 virtual ~MediaController(); | 50 virtual ~MediaController(); |
| 52 | 51 |
| 53 void addMediaElement(HTMLMediaElement*); | 52 void addMediaElement(HTMLMediaElement*); |
| 54 void removeMediaElement(HTMLMediaElement*); | 53 void removeMediaElement(HTMLMediaElement*); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 bool m_closedCaptionsVisible; | 136 bool m_closedCaptionsVisible; |
| 138 OwnPtr<Clock> m_clock; | 137 OwnPtr<Clock> m_clock; |
| 139 ExecutionContext* m_executionContext; | 138 ExecutionContext* m_executionContext; |
| 140 Timer<MediaController> m_timeupdateTimer; | 139 Timer<MediaController> m_timeupdateTimer; |
| 141 double m_previousTimeupdateTime; | 140 double m_previousTimeupdateTime; |
| 142 }; | 141 }; |
| 143 | 142 |
| 144 } // namespace WebCore | 143 } // namespace WebCore |
| 145 | 144 |
| 146 #endif | 145 #endif |
| OLD | NEW |