| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 #include "content/port/browser/render_widget_host_view_port.h" | 6 #include "content/port/browser/render_widget_host_view_port.h" |
| 7 #include "ui/gfx/vector2d_f.h" |
| 7 | 8 |
| 8 namespace content { | 9 namespace content { |
| 9 | 10 |
| 10 void RenderWidgetHostImpl::OnMsgUpdateFrameInfo( | 11 void RenderWidgetHostImpl::OnMsgUpdateFrameInfo( |
| 11 const gfx::Vector2d& scroll_offset, | 12 const gfx::Vector2d& scroll_offset, |
| 12 float page_scale_factor, | 13 float page_scale_factor, |
| 13 float min_page_scale_factor, | 14 float min_page_scale_factor, |
| 14 float max_page_scale_factor, | 15 float max_page_scale_factor, |
| 15 const gfx::Size& content_size) { | 16 const gfx::Size& content_size) { |
| 16 if (view_) | 17 if (view_) |
| 17 view_->UpdateFrameInfo(scroll_offset, | 18 view_->UpdateFrameInfo(scroll_offset, |
| 18 page_scale_factor, | 19 page_scale_factor, |
| 19 min_page_scale_factor, | 20 min_page_scale_factor, |
| 20 max_page_scale_factor, | 21 max_page_scale_factor, |
| 21 content_size); | 22 content_size, |
| 23 gfx::Vector2dF(), |
| 24 gfx::Vector2dF()); |
| 22 } | 25 } |
| 23 | 26 |
| 24 } // namespace content | 27 } // namespace content |
| OLD | NEW |