Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Side by Side Diff: Source/core/html/MediaController.h

Issue 219283004: Remove what remains of MediaControllerInterface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: earliest possible position FIXME Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/MediaControllerInterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef MediaController_h 26 #ifndef MediaController_h
27 #define MediaController_h 27 #define MediaController_h
28 28
29 #include "bindings/v8/ScriptWrappable.h" 29 #include "bindings/v8/ScriptWrappable.h"
30 #include "core/events/Event.h" 30 #include "core/events/Event.h"
31 #include "core/events/EventTarget.h" 31 #include "core/events/EventTarget.h"
32 #include "core/html/HTMLMediaElement.h" 32 #include "core/html/HTMLMediaElement.h"
33 #include "core/html/MediaControllerInterface.h"
34 #include "platform/Timer.h" 33 #include "platform/Timer.h"
35 #include "wtf/PassRefPtr.h" 34 #include "wtf/PassRefPtr.h"
36 #include "wtf/RefCounted.h" 35 #include "wtf/RefCounted.h"
37 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
38 37
39 namespace WebCore { 38 namespace WebCore {
40 39
41 class Clock; 40 class Clock;
42 class Event; 41 class Event;
43 class ExceptionState; 42 class ExceptionState;
44 class ExecutionContext; 43 class ExecutionContext;
45 44
46 class MediaController FINAL : public RefCounted<MediaController>, public ScriptW rappable, public MediaControllerInterface, public EventTargetWithInlineData { 45 class MediaController FINAL : public RefCounted<MediaController>, public ScriptW rappable, public EventTargetWithInlineData {
47 REFCOUNTED_EVENT_TARGET(MediaController); 46 REFCOUNTED_EVENT_TARGET(MediaController);
48 public: 47 public:
49 static PassRefPtr<MediaController> create(ExecutionContext*); 48 static PassRefPtr<MediaController> create(ExecutionContext*);
50 virtual ~MediaController(); 49 virtual ~MediaController();
51 50
52 void addMediaElement(HTMLMediaElement*); 51 void addMediaElement(HTMLMediaElement*);
53 void removeMediaElement(HTMLMediaElement*); 52 void removeMediaElement(HTMLMediaElement*);
54 bool containsMediaElement(HTMLMediaElement*) const; 53 bool containsMediaElement(HTMLMediaElement*) const;
55 54
56 PassRefPtr<TimeRanges> buffered() const; 55 PassRefPtr<TimeRanges> buffered() const;
57 PassRefPtr<TimeRanges> seekable() const; 56 PassRefPtr<TimeRanges> seekable() const;
58 PassRefPtr<TimeRanges> played(); 57 PassRefPtr<TimeRanges> played();
59 58
60 virtual double duration() const OVERRIDE; 59 double duration() const;
61 virtual double currentTime() const OVERRIDE; 60 double currentTime() const;
62 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE; 61 void setCurrentTime(double, ExceptionState&);
63 62
64 bool paused() const { return m_paused; } 63 bool paused() const { return m_paused; }
65 void play(); 64 void play();
66 void pause(); 65 void pause();
67 void unpause(); 66 void unpause();
68 67
69 double defaultPlaybackRate() const { return m_defaultPlaybackRate; } 68 double defaultPlaybackRate() const { return m_defaultPlaybackRate; }
70 void setDefaultPlaybackRate(double); 69 void setDefaultPlaybackRate(double);
71 70
72 double playbackRate() const; 71 double playbackRate() const;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 mutable Timer<MediaController> m_clearPositionTimer; 122 mutable Timer<MediaController> m_clearPositionTimer;
124 OwnPtr<Clock> m_clock; 123 OwnPtr<Clock> m_clock;
125 ExecutionContext* m_executionContext; 124 ExecutionContext* m_executionContext;
126 Timer<MediaController> m_timeupdateTimer; 125 Timer<MediaController> m_timeupdateTimer;
127 double m_previousTimeupdateTime; 126 double m_previousTimeupdateTime;
128 }; 127 };
129 128
130 } // namespace WebCore 129 } // namespace WebCore
131 130
132 #endif 131 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/MediaControllerInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698