| 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/common/view_messages.h" |
| 6 #include "content/port/browser/render_widget_host_view_port.h" | 7 #include "content/port/browser/render_widget_host_view_port.h" |
| 7 #include "ui/gfx/vector2d_f.h" | 8 #include "ui/gfx/vector2d_f.h" |
| 8 | 9 |
| 9 namespace content { | 10 namespace content { |
| 10 | 11 |
| 11 void RenderWidgetHostImpl::OnUpdateFrameInfo( | 12 void RenderWidgetHostImpl::OnUpdateFrameInfo( |
| 12 const gfx::Vector2d& scroll_offset, | 13 const ViewHostMsg_UpdateFrameInfo_Params& params) { |
| 13 float page_scale_factor, | |
| 14 float min_page_scale_factor, | |
| 15 float max_page_scale_factor, | |
| 16 const gfx::Size& content_size) { | |
| 17 if (view_) | 14 if (view_) |
| 18 view_->UpdateFrameInfo(scroll_offset, | 15 view_->UpdateFrameInfo(params.scroll_offset, |
| 19 page_scale_factor, | 16 params.unused_scroll_delta, |
| 20 min_page_scale_factor, | 17 params.page_scale_factor, |
| 21 max_page_scale_factor, | 18 params.min_page_scale_factor, |
| 22 content_size, | 19 params.max_page_scale_factor, |
| 20 params.content_size, |
| 23 gfx::Vector2dF(), | 21 gfx::Vector2dF(), |
| 24 gfx::Vector2dF()); | 22 gfx::Vector2dF()); |
| 25 } | 23 } |
| 26 | 24 |
| 27 } // namespace content | 25 } // namespace content |
| OLD | NEW |