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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 // Returns the layout object for the part of the controls that should be | 79 // Returns the layout object for the part of the controls that should be |
80 // used for overlap checking during text track layout. May be null. | 80 // used for overlap checking during text track layout. May be null. |
81 LayoutObject* layoutObjectForTextTrackLayout(); | 81 LayoutObject* layoutObjectForTextTrackLayout(); |
82 | 82 |
83 // Notify us that our controls enclosure has changed width. | 83 // Notify us that our controls enclosure has changed width. |
84 void notifyPanelWidthChanged(const LayoutUnit& newWidth); | 84 void notifyPanelWidthChanged(const LayoutUnit& newWidth); |
85 | 85 |
86 // Notify us that the media element's network state has changed. | 86 // Notify us that the media element's network state has changed. |
87 void networkStateChanged(); | 87 void networkStateChanged(); |
88 | 88 |
89 void toggleOverflowMenu(); | |
90 | |
91 bool overflowMenuVisible(); | |
92 | |
93 // Returns a list of all possible controls that can appear in an overflow | |
94 // menu. | |
95 std::vector<MediaControlInputElement*> getOverflowMenuButtons(); | |
mlamouri (slow - plz ping)
2016/09/06 10:25:45
That's never defined it seems.
kdsilva
2016/09/06 17:32:46
Done.
| |
96 | |
89 DECLARE_VIRTUAL_TRACE(); | 97 DECLARE_VIRTUAL_TRACE(); |
90 | 98 |
91 private: | 99 private: |
92 void invalidate(Element*); | 100 void invalidate(Element*); |
93 | 101 |
94 class BatchedControlUpdate; | 102 class BatchedControlUpdate; |
95 | 103 |
96 explicit MediaControls(HTMLMediaElement&); | 104 explicit MediaControls(HTMLMediaElement&); |
97 | 105 |
98 void initializeControls(); | 106 void initializeControls(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 Member<MediaControlPanelEnclosureElement> m_enclosure; | 144 Member<MediaControlPanelEnclosureElement> m_enclosure; |
137 Member<MediaControlPanelElement> m_panel; | 145 Member<MediaControlPanelElement> m_panel; |
138 Member<MediaControlPlayButtonElement> m_playButton; | 146 Member<MediaControlPlayButtonElement> m_playButton; |
139 Member<MediaControlTimelineElement> m_timeline; | 147 Member<MediaControlTimelineElement> m_timeline; |
140 Member<MediaControlCurrentTimeDisplayElement> m_currentTimeDisplay; | 148 Member<MediaControlCurrentTimeDisplayElement> m_currentTimeDisplay; |
141 Member<MediaControlTimeRemainingDisplayElement> m_durationDisplay; | 149 Member<MediaControlTimeRemainingDisplayElement> m_durationDisplay; |
142 Member<MediaControlMuteButtonElement> m_muteButton; | 150 Member<MediaControlMuteButtonElement> m_muteButton; |
143 Member<MediaControlVolumeSliderElement> m_volumeSlider; | 151 Member<MediaControlVolumeSliderElement> m_volumeSlider; |
144 Member<MediaControlToggleClosedCaptionsButtonElement> m_toggleClosedCaptions Button; | 152 Member<MediaControlToggleClosedCaptionsButtonElement> m_toggleClosedCaptions Button; |
145 Member<MediaControlTextTrackListElement> m_textTrackList; | 153 Member<MediaControlTextTrackListElement> m_textTrackList; |
154 Member<MediaControlOverflowMenuButtonElement> m_overflowMenu; | |
155 Member<MediaControlOverflowMenuListElement> m_overflowList; | |
156 | |
146 Member<MediaControlCastButtonElement> m_castButton; | 157 Member<MediaControlCastButtonElement> m_castButton; |
147 Member<MediaControlFullscreenButtonElement> m_fullScreenButton; | 158 Member<MediaControlFullscreenButtonElement> m_fullScreenButton; |
148 | 159 |
149 Timer<MediaControls> m_hideMediaControlsTimer; | 160 Timer<MediaControls> m_hideMediaControlsTimer; |
150 unsigned m_hideTimerBehaviorFlags; | 161 unsigned m_hideTimerBehaviorFlags; |
151 bool m_isMouseOverControls : 1; | 162 bool m_isMouseOverControls : 1; |
152 bool m_isPausedForScrubbing : 1; | 163 bool m_isPausedForScrubbing : 1; |
153 | 164 |
154 Timer<MediaControls> m_panelWidthChangedTimer; | 165 Timer<MediaControls> m_panelWidthChangedTimer; |
155 int m_panelWidth; | 166 int m_panelWidth; |
156 | 167 |
157 bool m_allowHiddenVolumeControls : 1; | 168 bool m_allowHiddenVolumeControls : 1; |
158 }; | 169 }; |
159 | 170 |
160 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 171 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
161 | 172 |
162 } // namespace blink | 173 } // namespace blink |
163 | 174 |
164 #endif | 175 #endif |
OLD | NEW |