Remove didAutoResize from WebWidgetClient and move it to WebViewClient.

This is part of a refactor to split WebView/WebWidget.

BUG=419087

Review-Url: https://codereview.chromium.org/2143643002
Cr-Commit-Position: refs/heads/master@{#405489}
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 1bc7b2f..7797b31 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1075,29 +1075,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // WebWidgetClient
 
-void RenderWidget::didAutoResize(const WebSize& new_size) {
-  WebRect new_size_in_window(0, 0, new_size.width, new_size.height);
-  convertViewportToWindow(&new_size_in_window);
-  if (size_.width() != new_size_in_window.width ||
-      size_.height() != new_size_in_window.height) {
-    size_ = gfx::Size(new_size_in_window.width, new_size_in_window.height);
-
-    if (resizing_mode_selector_->is_synchronous_mode()) {
-      gfx::Rect new_pos(rootWindowRect().x,
-                        rootWindowRect().y,
-                        size_.width(),
-                        size_.height());
-      view_screen_rect_ = new_pos;
-      window_screen_rect_ = new_pos;
-    }
-
-    AutoResizeCompositor();
-
-    if (!resizing_mode_selector_->is_synchronous_mode())
-      need_update_rect_for_auto_resize_ = true;
-  }
-}
-
 void RenderWidget::AutoResizeCompositor()  {
   physical_backing_size_ = gfx::ScaleToCeiledSize(size_, device_scale_factor_);
   if (compositor_)
@@ -1732,6 +1709,27 @@
   SetDeviceColorProfile(color_profile);
 }
 
+void RenderWidget::DidAutoResize(const gfx::Size& new_size) {
+  WebRect new_size_in_window(0, 0, new_size.width(), new_size.height());
+  convertViewportToWindow(&new_size_in_window);
+  if (size_.width() != new_size_in_window.width ||
+      size_.height() != new_size_in_window.height) {
+    size_ = gfx::Size(new_size_in_window.width, new_size_in_window.height);
+
+    if (resizing_mode_selector_->is_synchronous_mode()) {
+      gfx::Rect new_pos(rootWindowRect().x, rootWindowRect().y, size_.width(),
+                        size_.height());
+      view_screen_rect_ = new_pos;
+      window_screen_rect_ = new_pos;
+    }
+
+    AutoResizeCompositor();
+
+    if (!resizing_mode_selector_->is_synchronous_mode())
+      need_update_rect_for_auto_resize_ = true;
+  }
+}
+
 // Check blink::WebTextInputType and ui::TextInputType is kept in sync.
 STATIC_ASSERT_ENUM(blink::WebTextInputTypeNone, ui::TEXT_INPUT_TYPE_NONE);
 STATIC_ASSERT_ENUM(blink::WebTextInputTypeText, ui::TEXT_INPUT_TYPE_TEXT);