Use PageMessage to send VisibleViewport sizes to OOPIF renderers.

This CL adds PageMsg_UpdatePageVisualProperties and causes it to be
sent to all renderers for a page when the viewport is resized. At
present, the mainframe renderer continues to act on the viewport size it
receives via RenderWidget::SynchronizeVisualProperties, but any oopif
renderers receive it via RenderViewImpl::OnUpdatePageVisualProperties().

This CL also removes ResizeVisualViewport from the WebWidget API and
moves it to the WebView API.

Bug: 939050, 599688
Change-Id: I04097ea936e8d87792155278c9c1b8823f6aaf45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1621868
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: danakj <[email protected]>
Reviewed-by: Alex Moshchuk <[email protected]>
Commit-Queue: James MacLean <[email protected]>
Cr-Commit-Position: refs/heads/master@{#670135}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index b9cb568..8713403 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1630,6 +1630,12 @@
     GetOuterWebContents()->NotifyNavigationStateChanged(changed_flags);
 }
 
+void WebContentsImpl::NotifyVisibleViewportSizeChanged(
+    const gfx::Size& visible_viewport_size) {
+  SendPageMessage(new PageMsg_UpdatePageVisualProperties(
+      MSG_ROUTING_NONE, visible_viewport_size));
+}
+
 void WebContentsImpl::OnAudioStateChanged() {
   // This notification can come from any embedded contents or from this
   // WebContents' stream monitor. Aggregate these signals to get the actual