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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2411553003: Notify WebMediaPlayer when its ancestor enters/exists fullscreen. (Closed)
Patch Set: Rebased. Add FullscreenObserver. Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When 221 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When
222 // this is true, the video layer will be removed from the layer tree when 222 // this is true, the video layer will be removed from the layer tree when
223 // entering fullscreen, and the WebMediaPlayer is responsible for displaying 223 // entering fullscreen, and the WebMediaPlayer is responsible for displaying
224 // the video in enteredFullscreen(). 224 // the video in enteredFullscreen().
225 virtual bool supportsOverlayFullscreenVideo() { return false; } 225 virtual bool supportsOverlayFullscreenVideo() { return false; }
226 // Inform WebMediaPlayer when the element has entered/exited fullscreen. 226 // Inform WebMediaPlayer when the element has entered/exited fullscreen.
227 virtual void enteredFullscreen() {} 227 virtual void enteredFullscreen() {}
228 virtual void exitedFullscreen() {} 228 virtual void exitedFullscreen() {}
229 229
230 // Inform WebMediaPlayer when its ancestor enters full screen and the element
231 // covers most of the window.
232 virtual void enteredFullWindow() {}
233 // Inform WebMediaPlayer when its ancestor exits full screen.
234 virtual void exitedFullWindow() {}
235
230 virtual void enabledAudioTracksChanged( 236 virtual void enabledAudioTracksChanged(
231 const WebVector<TrackId>& enabledTrackIds) {} 237 const WebVector<TrackId>& enabledTrackIds) {}
232 // |selectedTrackId| is null if no track is selected. 238 // |selectedTrackId| is null if no track is selected.
233 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 239 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
234 }; 240 };
235 241
236 } // namespace blink 242 } // namespace blink
237 243
238 #endif 244 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698