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

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

Issue 154283004: Move ReadyState enum from MediaControllerInterface to HTMLMediaElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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/MediaControllerInterface.h" 33 #include "core/html/MediaControllerInterface.h"
33 #include "platform/Timer.h" 34 #include "platform/Timer.h"
34 #include "wtf/PassRefPtr.h" 35 #include "wtf/PassRefPtr.h"
35 #include "wtf/RefCounted.h" 36 #include "wtf/RefCounted.h"
36 #include "wtf/Vector.h" 37 #include "wtf/Vector.h"
37 38
38 namespace WebCore { 39 namespace WebCore {
39 40
40 class Clock; 41 class Clock;
41 class Event; 42 class Event;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 74
74 virtual double playbackRate() const OVERRIDE; 75 virtual double playbackRate() const OVERRIDE;
75 virtual void setPlaybackRate(double) OVERRIDE; 76 virtual void setPlaybackRate(double) OVERRIDE;
76 77
77 virtual double volume() const OVERRIDE { return m_volume; } 78 virtual double volume() const OVERRIDE { return m_volume; }
78 virtual void setVolume(double, ExceptionState&) OVERRIDE; 79 virtual void setVolume(double, ExceptionState&) OVERRIDE;
79 80
80 virtual bool muted() const OVERRIDE { return m_muted; } 81 virtual bool muted() const OVERRIDE { return m_muted; }
81 virtual void setMuted(bool) OVERRIDE; 82 virtual void setMuted(bool) OVERRIDE;
82 83
83 virtual ReadyState readyState() const OVERRIDE { return m_readyState; } 84 HTMLMediaElement::ReadyState readyState() const { return m_readyState; }
acolwell GONE FROM CHROMIUM 2014/02/07 21:52:40 Perhaps use "typedef HTMLMediaElement::ReadyState
philipj_slow 2014/02/08 03:52:03 Done.
84 85
85 enum PlaybackState { WAITING, PLAYING, ENDED }; 86 enum PlaybackState { WAITING, PLAYING, ENDED };
86 const AtomicString& playbackState() const; 87 const AtomicString& playbackState() const;
87 88
88 virtual bool isFullscreen() const OVERRIDE { return false; } 89 virtual bool isFullscreen() const OVERRIDE { return false; }
89 virtual void enterFullscreen() OVERRIDE { } 90 virtual void enterFullscreen() OVERRIDE { }
90 91
91 virtual bool hasAudio() const OVERRIDE; 92 virtual bool hasAudio() const OVERRIDE;
92 virtual bool hasVideo() const OVERRIDE; 93 virtual bool hasVideo() const OVERRIDE;
93 virtual bool hasClosedCaptions() const OVERRIDE; 94 virtual bool hasClosedCaptions() const OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 virtual ExecutionContext* executionContext() const OVERRIDE { return m_execu tionContext; } 126 virtual ExecutionContext* executionContext() const OVERRIDE { return m_execu tionContext; }
126 127
127 friend class HTMLMediaElement; 128 friend class HTMLMediaElement;
128 friend class MediaControllerEventListener; 129 friend class MediaControllerEventListener;
129 Vector<HTMLMediaElement*> m_mediaElements; 130 Vector<HTMLMediaElement*> m_mediaElements;
130 bool m_paused; 131 bool m_paused;
131 double m_defaultPlaybackRate; 132 double m_defaultPlaybackRate;
132 double m_volume; 133 double m_volume;
133 mutable double m_position; 134 mutable double m_position;
134 bool m_muted; 135 bool m_muted;
135 ReadyState m_readyState; 136 HTMLMediaElement::ReadyState m_readyState;
136 PlaybackState m_playbackState; 137 PlaybackState m_playbackState;
137 Vector<RefPtr<Event> > m_pendingEvents; 138 Vector<RefPtr<Event> > m_pendingEvents;
138 Timer<MediaController> m_asyncEventTimer; 139 Timer<MediaController> m_asyncEventTimer;
139 mutable Timer<MediaController> m_clearPositionTimer; 140 mutable Timer<MediaController> m_clearPositionTimer;
140 String m_mediaGroup; 141 String m_mediaGroup;
141 bool m_closedCaptionsVisible; 142 bool m_closedCaptionsVisible;
142 OwnPtr<Clock> m_clock; 143 OwnPtr<Clock> m_clock;
143 ExecutionContext* m_executionContext; 144 ExecutionContext* m_executionContext;
144 Timer<MediaController> m_timeupdateTimer; 145 Timer<MediaController> m_timeupdateTimer;
145 double m_previousTimeupdateTime; 146 double m_previousTimeupdateTime;
146 }; 147 };
147 148
148 } // namespace WebCore 149 } // namespace WebCore
149 150
150 #endif 151 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698