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

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

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Add 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When 255 // Whether the WebMediaPlayer supports overlay fullscreen video mode. When
256 // this is true, the video layer will be removed from the layer tree when 256 // this is true, the video layer will be removed from the layer tree when
257 // entering fullscreen, and the WebMediaPlayer is responsible for displaying 257 // entering fullscreen, and the WebMediaPlayer is responsible for displaying
258 // the video in enteredFullscreen(). 258 // the video in enteredFullscreen().
259 virtual bool supportsOverlayFullscreenVideo() { return false; } 259 virtual bool supportsOverlayFullscreenVideo() { return false; }
260 // Inform WebMediaPlayer when the element has entered/exited fullscreen. 260 // Inform WebMediaPlayer when the element has entered/exited fullscreen.
261 virtual void enteredFullscreen() {} 261 virtual void enteredFullscreen() {}
262 virtual void exitedFullscreen() {} 262 virtual void exitedFullscreen() {}
263 263
264 // Inform WebMediaPlayer when the element starts/stops being the dominant 264 // Inform WebMediaPlayer when the element starts/stops being the dominant
265 // visible content. 265 // visible content. This will only be called after the monitoring of the
266 // intersection with viewport is activated by calling
267 // HTMLMediaElement::activateViewportIntersectionMonitoring().
xhwang 2016/12/15 20:31:11 s/HTMLMediaElement/WMPClient..
xjz 2016/12/15 20:42:37 Done.
266 virtual void becameDominantVisibleContent(bool isDominant) {} 268 virtual void becameDominantVisibleContent(bool isDominant) {}
267 269
268 virtual void enabledAudioTracksChanged( 270 virtual void enabledAudioTracksChanged(
269 const WebVector<TrackId>& enabledTrackIds) {} 271 const WebVector<TrackId>& enabledTrackIds) {}
270 // |selectedTrackId| is null if no track is selected. 272 // |selectedTrackId| is null if no track is selected.
271 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 273 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
272 }; 274 };
273 275
274 } // namespace blink 276 } // namespace blink
275 277
276 #endif 278 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698