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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/MediaControls.h

Issue 2243473002: Adding overflow menu to media player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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
OLDNEW
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
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
89 DECLARE_VIRTUAL_TRACE(); 93 DECLARE_VIRTUAL_TRACE();
90 94
91 private: 95 private:
92 void invalidate(Element*); 96 void invalidate(Element*);
93 97
94 class BatchedControlUpdate; 98 class BatchedControlUpdate;
95 99
96 explicit MediaControls(HTMLMediaElement&); 100 explicit MediaControls(HTMLMediaElement&);
97 101
98 void initializeControls(); 102 void initializeControls();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 Member<MediaControlPanelEnclosureElement> m_enclosure; 140 Member<MediaControlPanelEnclosureElement> m_enclosure;
137 Member<MediaControlPanelElement> m_panel; 141 Member<MediaControlPanelElement> m_panel;
138 Member<MediaControlPlayButtonElement> m_playButton; 142 Member<MediaControlPlayButtonElement> m_playButton;
139 Member<MediaControlTimelineElement> m_timeline; 143 Member<MediaControlTimelineElement> m_timeline;
140 Member<MediaControlCurrentTimeDisplayElement> m_currentTimeDisplay; 144 Member<MediaControlCurrentTimeDisplayElement> m_currentTimeDisplay;
141 Member<MediaControlTimeRemainingDisplayElement> m_durationDisplay; 145 Member<MediaControlTimeRemainingDisplayElement> m_durationDisplay;
142 Member<MediaControlMuteButtonElement> m_muteButton; 146 Member<MediaControlMuteButtonElement> m_muteButton;
143 Member<MediaControlVolumeSliderElement> m_volumeSlider; 147 Member<MediaControlVolumeSliderElement> m_volumeSlider;
144 Member<MediaControlToggleClosedCaptionsButtonElement> m_toggleClosedCaptions Button; 148 Member<MediaControlToggleClosedCaptionsButtonElement> m_toggleClosedCaptions Button;
145 Member<MediaControlTextTrackListElement> m_textTrackList; 149 Member<MediaControlTextTrackListElement> m_textTrackList;
150 Member<MediaControlOverflowMenuButtonElement> m_overflowMenu;
151 Member<MediaControlOverflowMenuListElement> m_overflowList;
152
146 Member<MediaControlCastButtonElement> m_castButton; 153 Member<MediaControlCastButtonElement> m_castButton;
147 Member<MediaControlFullscreenButtonElement> m_fullscreenButton; 154 Member<MediaControlFullscreenButtonElement> m_fullscreenButton;
148 155
149 Timer<MediaControls> m_hideMediaControlsTimer; 156 Timer<MediaControls> m_hideMediaControlsTimer;
150 unsigned m_hideTimerBehaviorFlags; 157 unsigned m_hideTimerBehaviorFlags;
151 bool m_isMouseOverControls : 1; 158 bool m_isMouseOverControls : 1;
152 bool m_isPausedForScrubbing : 1; 159 bool m_isPausedForScrubbing : 1;
153 160
154 Timer<MediaControls> m_panelWidthChangedTimer; 161 Timer<MediaControls> m_panelWidthChangedTimer;
155 int m_panelWidth; 162 int m_panelWidth;
156 163
157 bool m_allowHiddenVolumeControls : 1; 164 bool m_allowHiddenVolumeControls : 1;
158 }; 165 };
159 166
160 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 167 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
161 168
162 } // namespace blink 169 } // namespace blink
163 170
164 #endif 171 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698