Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl_android.cc

Issue 11552009: Add support for calculating the position of the top controls in the cc layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing CC_EXPORT...learn to run try jobs manually Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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::OnUpdateFrameInfo( 11 void RenderWidgetHostImpl::OnUpdateFrameInfo(
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698