This change adds an overall controller for the picture in picture window. This class will control creation/destruction of the window, as well as embedding the appropriate surface for showing media content (future patch).
This controller is currently created per-WebContents, rather than per Browser instance or Browser window. This behavior is still being determined and will be updated. Tests will be added when this is more fleshed out.
Bug: 726621 Change-Id: Id952b983a9bfdfaa90b154576b37143121e666ef Reviewed-on: https://chromium-review.googlesource.com/646407 Commit-Queue: apacible
3cf6ae8 Add window controller for Picture in Picture.
chrome/browser/BUILD.gn | 2 +
.../picture_in_picture_window_controller.cc | 47 +++++++++++++++++++++
.../picture_in_picture_window_controller.h | 49 ++++++++++++++++++++++
3 files changed, 98 insertions(+)