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

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

Issue 2293273002: Add a download button to the media player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media-controls
Patch Set: 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 Member<MediaControlTimeRemainingDisplayElement> m_durationDisplay; 145 Member<MediaControlTimeRemainingDisplayElement> m_durationDisplay;
146 Member<MediaControlMuteButtonElement> m_muteButton; 146 Member<MediaControlMuteButtonElement> m_muteButton;
147 Member<MediaControlVolumeSliderElement> m_volumeSlider; 147 Member<MediaControlVolumeSliderElement> m_volumeSlider;
148 Member<MediaControlToggleClosedCaptionsButtonElement> m_toggleClosedCaptions Button; 148 Member<MediaControlToggleClosedCaptionsButtonElement> m_toggleClosedCaptions Button;
149 Member<MediaControlTextTrackListElement> m_textTrackList; 149 Member<MediaControlTextTrackListElement> m_textTrackList;
150 Member<MediaControlOverflowMenuButtonElement> m_overflowMenu; 150 Member<MediaControlOverflowMenuButtonElement> m_overflowMenu;
151 Member<MediaControlOverflowMenuListElement> m_overflowList; 151 Member<MediaControlOverflowMenuListElement> m_overflowList;
152 152
153 Member<MediaControlCastButtonElement> m_castButton; 153 Member<MediaControlCastButtonElement> m_castButton;
154 Member<MediaControlFullscreenButtonElement> m_fullscreenButton; 154 Member<MediaControlFullscreenButtonElement> m_fullscreenButton;
155 Member<MediaControlDownloadButtonElement> m_downloadButton;
155 156
156 Timer<MediaControls> m_hideMediaControlsTimer; 157 Timer<MediaControls> m_hideMediaControlsTimer;
157 unsigned m_hideTimerBehaviorFlags; 158 unsigned m_hideTimerBehaviorFlags;
158 bool m_isMouseOverControls : 1; 159 bool m_isMouseOverControls : 1;
159 bool m_isPausedForScrubbing : 1; 160 bool m_isPausedForScrubbing : 1;
160 161
161 Timer<MediaControls> m_panelWidthChangedTimer; 162 Timer<MediaControls> m_panelWidthChangedTimer;
162 int m_panelWidth; 163 int m_panelWidth;
163 164
164 bool m_allowHiddenVolumeControls : 1; 165 bool m_allowHiddenVolumeControls : 1;
165 }; 166 };
166 167
167 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 168 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
168 169
169 } // namespace blink 170 } // namespace blink
170 171
171 #endif 172 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698