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

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

Issue 2511143006: Detect change on the intersection of video and viewport. (Closed)
Patch Set: Rebase again. Created 4 years 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/tests/MediaElementFillingViewportTest.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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When 223 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When
224 // this is true, the video layer will be removed from the layer tree when 224 // this is true, the video layer will be removed from the layer tree when
225 // entering fullscreen, and the WebMediaPlayer is responsible for displaying 225 // entering fullscreen, and the WebMediaPlayer is responsible for displaying
226 // the video in enteredFullscreen(). 226 // the video in enteredFullscreen().
227 virtual bool supportsOverlayFullscreenVideo() { return false; } 227 virtual bool supportsOverlayFullscreenVideo() { return false; }
228 // Inform WebMediaPlayer when the element has entered/exited fullscreen. 228 // Inform WebMediaPlayer when the element has entered/exited fullscreen.
229 virtual void enteredFullscreen() {} 229 virtual void enteredFullscreen() {}
230 virtual void exitedFullscreen() {} 230 virtual void exitedFullscreen() {}
231 231
232 // Inform WebMediaPlayer when the element starts/stops being the dominant
233 // visible content.
234 virtual void becameDominantVisibleContent(bool isDominant) {}
235
232 virtual void enabledAudioTracksChanged( 236 virtual void enabledAudioTracksChanged(
233 const WebVector<TrackId>& enabledTrackIds) {} 237 const WebVector<TrackId>& enabledTrackIds) {}
234 // |selectedTrackId| is null if no track is selected. 238 // |selectedTrackId| is null if no track is selected.
235 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 239 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
236 }; 240 };
237 241
238 } // namespace blink 242 } // namespace blink
239 243
240 #endif 244 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698