OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void refreshClosedCaptionsButtonVisibility(); | 61 void refreshClosedCaptionsButtonVisibility(); |
62 void closedCaptionTracksChanged(); | 62 void closedCaptionTracksChanged(); |
63 | 63 |
64 void enteredFullscreen(); | 64 void enteredFullscreen(); |
65 void exitedFullscreen(); | 65 void exitedFullscreen(); |
66 | 66 |
67 void updateTextTrackDisplay(); | 67 void updateTextTrackDisplay(); |
68 | 68 |
69 void mediaElementFocused(); | 69 void mediaElementFocused(); |
70 | 70 |
| 71 String getResourceDataURL(String); |
| 72 bool isOverlayPlayButtonEnabled(); |
| 73 bool shouldShowControls() const; |
| 74 void setDivDisplayType(RefPtrWillBeRawPtr<HTMLElement>, unsigned); |
| 75 void setInputDisplayType(RefPtrWillBeRawPtr<HTMLElement>, unsigned); |
| 76 bool fullscreenIsSupported() const; |
| 77 bool hasAudio() const; |
| 78 bool hasVideo() const; |
| 79 bool hasClosedCaptions() const; |
| 80 bool togglePlayStateWillPlay() const; |
| 81 void togglePlayState(); |
| 82 void setCurrentTime(double time); |
| 83 bool isClosedCaptionsVisible() const; |
| 84 void toggleClosedCaptionsVisible(); |
| 85 void toggleFullscreen(); |
| 86 double getTextTrackContainerFontSize(); |
| 87 void updateTextTrackContainerDisplay(RefPtrWillBeRawPtr<HTMLElement>); |
| 88 |
71 virtual void trace(Visitor*) OVERRIDE; | 89 virtual void trace(Visitor*) OVERRIDE; |
72 | 90 |
73 private: | 91 private: |
74 explicit MediaControls(HTMLMediaElement&); | 92 explicit MediaControls(HTMLMediaElement&); |
75 | 93 |
76 bool initializeControls(); | 94 bool initializeControls(); |
77 | 95 |
78 void makeOpaque(); | 96 void makeOpaque(); |
79 void makeTransparent(); | 97 void makeTransparent(); |
80 | 98 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 RawPtrWillBeMember<MediaControlCurrentTimeDisplayElement> m_currentTimeDispl
ay; | 136 RawPtrWillBeMember<MediaControlCurrentTimeDisplayElement> m_currentTimeDispl
ay; |
119 RawPtrWillBeMember<MediaControlTimelineElement> m_timeline; | 137 RawPtrWillBeMember<MediaControlTimelineElement> m_timeline; |
120 RawPtrWillBeMember<MediaControlMuteButtonElement> m_muteButton; | 138 RawPtrWillBeMember<MediaControlMuteButtonElement> m_muteButton; |
121 RawPtrWillBeMember<MediaControlVolumeSliderElement> m_volumeSlider; | 139 RawPtrWillBeMember<MediaControlVolumeSliderElement> m_volumeSlider; |
122 RawPtrWillBeMember<MediaControlToggleClosedCaptionsButtonElement> m_toggleCl
osedCaptionsButton; | 140 RawPtrWillBeMember<MediaControlToggleClosedCaptionsButtonElement> m_toggleCl
osedCaptionsButton; |
123 RawPtrWillBeMember<MediaControlFullscreenButtonElement> m_fullScreenButton; | 141 RawPtrWillBeMember<MediaControlFullscreenButtonElement> m_fullScreenButton; |
124 RawPtrWillBeMember<MediaControlTimeRemainingDisplayElement> m_durationDispla
y; | 142 RawPtrWillBeMember<MediaControlTimeRemainingDisplayElement> m_durationDispla
y; |
125 RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure; | 143 RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure; |
126 | 144 |
127 Timer<MediaControls> m_hideMediaControlsTimer; | 145 Timer<MediaControls> m_hideMediaControlsTimer; |
128 bool m_isMouseOverControls : 1; | 146 IntRect m_videoDisplaySize; |
129 bool m_isPausedForScrubbing : 1; | |
130 }; | 147 }; |
131 | 148 |
132 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 149 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
133 | 150 |
134 } | 151 } |
135 | 152 |
136 #endif | 153 #endif |
OLD | NEW |