MediaControlRootElement.h [plain text]
#ifndef MediaControlRootElement_h
#define MediaControlRootElement_h
#if ENABLE(VIDEO)
#include "MediaControls.h"
#include <wtf/RefPtr.h>
namespace WebCore {
class HTMLInputElement;
class HTMLMediaElement;
class Event;
class MediaControlPanelMuteButtonElement;
class MediaControlPlayButtonElement;
class MediaControlSeekButtonElement;
class MediaControlRewindButtonElement;
class MediaControlReturnToRealtimeButtonElement;
class MediaControlToggleClosedCaptionsButtonElement;
class MediaControlCurrentTimeDisplayElement;
class MediaControlTimelineElement;
class MediaControlTimeRemainingDisplayElement;
class MediaControlVolumeSliderElement;
class MediaControlFullscreenButtonElement;
class MediaControlTimeDisplayElement;
class MediaControlStatusDisplayElement;
class MediaControlTimelineContainerElement;
class MediaControlSeekBackButtonElement;
class MediaControlSeekForwardButtonElement;
class MediaControlMuteButtonElement;
class MediaControlVolumeSliderElement;
class MediaControlVolumeSliderMuteButtonElement;
class MediaControlVolumeSliderContainerElement;
class MediaControlFullscreenVolumeMinButtonElement;
class MediaControlFullscreenVolumeSliderElement;
class MediaControlFullscreenVolumeMaxButtonElement;
class MediaControlPanelElement;
class MediaPlayer;
class RenderBox;
class RenderMedia;
#if ENABLE(VIDEO_TRACK)
class MediaControlTextTrackContainerElement;
class MediaControlTextTrackDisplayElement;
#endif
class MediaControlRootElement : public MediaControls {
public:
static PassRefPtr<MediaControlRootElement> create(Document*);
void setMediaController(MediaControllerInterface*);
void show();
void hide();
void makeOpaque();
void makeTransparent();
void reset();
void playbackProgressed();
void playbackStarted();
void playbackStopped();
void changedMute();
void changedVolume();
void enteredFullscreen();
void exitedFullscreen();
void reportedError();
void loadedMetadata();
void changedClosedCaptionsVisibility();
void showVolumeSlider();
void updateTimeDisplay();
void updateStatusDisplay();
#if ENABLE(VIDEO_TRACK)
void createTextTrackDisplay();
void showTextTrackDisplay();
void hideTextTrackDisplay();
void updateTextTrackDisplay();
#endif
virtual bool shouldHideControls();
void bufferingProgressed();
private:
MediaControlRootElement(Document*);
virtual void defaultEventHandler(Event*);
void hideFullscreenControlsTimerFired(Timer<MediaControlRootElement>*);
void startHideFullscreenControlsTimer();
void stopHideFullscreenControlsTimer();
virtual const AtomicString& shadowPseudoId() const;
bool containsRelatedTarget(Event*);
MediaControllerInterface* m_mediaController;
MediaControlRewindButtonElement* m_rewindButton;
MediaControlPlayButtonElement* m_playButton;
MediaControlReturnToRealtimeButtonElement* m_returnToRealTimeButton;
MediaControlStatusDisplayElement* m_statusDisplay;
MediaControlCurrentTimeDisplayElement* m_currentTimeDisplay;
MediaControlTimelineElement* m_timeline;
MediaControlTimeRemainingDisplayElement* m_timeRemainingDisplay;
MediaControlTimelineContainerElement* m_timelineContainer;
MediaControlSeekBackButtonElement* m_seekBackButton;
MediaControlSeekForwardButtonElement* m_seekForwardButton;
MediaControlToggleClosedCaptionsButtonElement* m_toggleClosedCaptionsButton;
MediaControlPanelMuteButtonElement* m_panelMuteButton;
MediaControlVolumeSliderElement* m_volumeSlider;
MediaControlVolumeSliderMuteButtonElement* m_volumeSliderMuteButton;
MediaControlVolumeSliderContainerElement* m_volumeSliderContainer;
MediaControlFullscreenButtonElement* m_fullScreenButton;
MediaControlFullscreenVolumeMinButtonElement* m_fullScreenMinVolumeButton;
MediaControlFullscreenVolumeSliderElement* m_fullScreenVolumeSlider;
MediaControlFullscreenVolumeMaxButtonElement* m_fullScreenMaxVolumeButton;
MediaControlPanelElement* m_panel;
#if ENABLE(VIDEO_TRACK)
MediaControlTextTrackContainerElement* m_textDisplayContainer;
MediaControlTextTrackDisplayElement* m_textTrackDisplay;
#endif
Timer<MediaControlRootElement> m_hideFullscreenControlsTimer;
bool m_isMouseOverControls;
bool m_isFullscreen;
};
}
#endif
#endif