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

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: Addressed comments. 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
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When 222 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When
223 // this is true, the video layer will be removed from the layer tree when 223 // this is true, the video layer will be removed from the layer tree when
224 // entering fullscreen, and the WebMediaPlayer is responsible for displaying 224 // entering fullscreen, and the WebMediaPlayer is responsible for displaying
225 // the video in enteredFullscreen(). 225 // the video in enteredFullscreen().
226 virtual bool supportsOverlayFullscreenVideo() { return false; } 226 virtual bool supportsOverlayFullscreenVideo() { return false; }
227 // Inform WebMediaPlayer when the element has entered/exited fullscreen. 227 // Inform WebMediaPlayer when the element has entered/exited fullscreen.
228 virtual void enteredFullscreen() {} 228 virtual void enteredFullscreen() {}
229 virtual void exitedFullscreen() {} 229 virtual void exitedFullscreen() {}
230 230
231 // Inform WebmediaPlayer when the element starts/stops stably filling most of
xhwang 2016/11/30 18:13:09 nit: WebMediaPlayer
xjz 2016/11/30 18:58:16 Done.
232 // the viewport.
233 virtual void stablyFilledViewport(bool isMostlyFillingViewport) {}
xhwang 2016/11/30 18:13:09 nit: IMHO this is a bit hard to read, especially s
xhwang 2016/11/30 18:13:09 nit: Could you please clarify what "stably" and "m
Z_DONOTUSE 2016/11/30 18:48:23 How about just filledViewport(bool isMostlyFilling
xjz 2016/11/30 18:58:16 I am fine with either way, but think this one is s
xhwang 2016/11/30 19:06:21 filledViewport(bool isMostlyFillingViewport) l-g-t
miu 2016/11/30 19:56:56 I don't like filledViewport, for multiple reasons:
234
231 virtual void enabledAudioTracksChanged( 235 virtual void enabledAudioTracksChanged(
232 const WebVector<TrackId>& enabledTrackIds) {} 236 const WebVector<TrackId>& enabledTrackIds) {}
233 // |selectedTrackId| is null if no track is selected. 237 // |selectedTrackId| is null if no track is selected.
234 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 238 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
235 }; 239 };
236 240
237 } // namespace blink 241 } // namespace blink
238 242
239 #endif 243 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698