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

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

Issue 2696893002: [Blink>Media] Add heuristic for dominant video detection for Android (Closed)
Patch Set: nits Created 3 years, 9 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/core/html/MediaCustomControlsFullscreenDetectorTest.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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Inform WebMediaPlayer when the element has entered/exited fullscreen. 265 // Inform WebMediaPlayer when the element has entered/exited fullscreen.
266 virtual void enteredFullscreen() {} 266 virtual void enteredFullscreen() {}
267 virtual void exitedFullscreen() {} 267 virtual void exitedFullscreen() {}
268 268
269 // Inform WebMediaPlayer when the element starts/stops being the dominant 269 // Inform WebMediaPlayer when the element starts/stops being the dominant
270 // visible content. This will only be called after the monitoring of the 270 // visible content. This will only be called after the monitoring of the
271 // intersection with viewport is activated by calling 271 // intersection with viewport is activated by calling
272 // WebMediaPlayerClient::activateViewportIntersectionMonitoring(). 272 // WebMediaPlayerClient::activateViewportIntersectionMonitoring().
273 virtual void becameDominantVisibleContent(bool isDominant) {} 273 virtual void becameDominantVisibleContent(bool isDominant) {}
274 274
275 // Inform WebMediaPlayer when the element starts/stops being the effectively
276 // fullscreen video, i.e. being the fullscreen element or child of the
277 // fullscreen element, and being dominant in the viewport.
278 //
279 // TODO(zqzhang): merge with becameDominantVisibleContent(). See
280 // https://crbug.com/696211
281 virtual void setIsEffectivelyFullscreen(bool) {}
282
275 virtual void enabledAudioTracksChanged( 283 virtual void enabledAudioTracksChanged(
276 const WebVector<TrackId>& enabledTrackIds) {} 284 const WebVector<TrackId>& enabledTrackIds) {}
277 // |selectedTrackId| is null if no track is selected. 285 // |selectedTrackId| is null if no track is selected.
278 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 286 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
279 }; 287 };
280 288
281 } // namespace blink 289 } // namespace blink
282 290
283 #endif 291 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetectorTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698