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 | |
whywhat
2016/08/19 23:56:55
nit: end sentences with a dot, please
kdsilva
2016/08/24 05:33:27
Done.
| |
95 std::vector<MediaControlInputElement*> getOverflowMenuButtons(); | |
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<MediaControlOverflowMenu> m_overflowMenu; | |
155 Member<MediaControlOverflowMenuListElement> m_overflowList; | |
156 Member<MediaControlMuteButtonElement> m_muteOverflowButton; | |
157 Member<MediaControlCastButtonElement> m_castOverflowButton; | |
158 Member<MediaControlToggleClosedCaptionsButtonElement> m_ClosedCaptionsOverfl owButton; | |
whywhat
2016/08/19 23:56:55
nit: s/Closed/closed
kdsilva
2016/08/24 05:33:27
Done.
| |
159 Member<MediaControlFullscreenButtonElement> m_fullscreenOverflowButton; | |
160 | |
146 Member<MediaControlCastButtonElement> m_castButton; | 161 Member<MediaControlCastButtonElement> m_castButton; |
147 Member<MediaControlFullscreenButtonElement> m_fullScreenButton; | 162 Member<MediaControlFullscreenButtonElement> m_fullScreenButton; |
148 | 163 |
149 Timer<MediaControls> m_hideMediaControlsTimer; | 164 Timer<MediaControls> m_hideMediaControlsTimer; |
150 unsigned m_hideTimerBehaviorFlags; | 165 unsigned m_hideTimerBehaviorFlags; |
151 bool m_isMouseOverControls : 1; | 166 bool m_isMouseOverControls : 1; |
152 bool m_isPausedForScrubbing : 1; | 167 bool m_isPausedForScrubbing : 1; |
153 | 168 |
154 Timer<MediaControls> m_panelWidthChangedTimer; | 169 Timer<MediaControls> m_panelWidthChangedTimer; |
155 int m_panelWidth; | 170 int m_panelWidth; |
156 | 171 |
157 bool m_allowHiddenVolumeControls : 1; | 172 bool m_allowHiddenVolumeControls : 1; |
158 }; | 173 }; |
159 | 174 |
160 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 175 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
161 | 176 |
162 } // namespace blink | 177 } // namespace blink |
163 | 178 |
164 #endif | 179 #endif |
OLD | NEW |