[Picture in Picture] Show video in OverlayWindow.
This change allows videos to be shown in picture in picture mode.
When the picture in picture media controls button on a video player
is clicked, a window opens and the corresponding video plays in the
window.
This works behind a flag. This is the first of more patches and lays
the ground work for additional behavioral implementations and tests.
BUG: 726621
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: I01cc0af01986030ccafb623bc06592ce143a8970
Reviewed-on: https://chromium-review.googlesource.com/854719
Commit-Queue: apacible <[email protected]>
Reviewed-by: Frank Liberato <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Elly Fong-Jones <[email protected]>
Reviewed-by: Mounir Lamouri <[email protected]>
Cr-Commit-Position: refs/heads/master@{#539039}
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 405640c..6cd879b0 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -877,6 +877,9 @@
// frame.
void FrameDidCallFocus();
+ // Send SurfaceId information to FrameHost to use for Picture-in-Picture.
+ void OnPictureInPictureSurfaceIdUpdated(const viz::SurfaceId& surface_id);
+
protected:
explicit RenderFrameImpl(CreateParams params);