diff options
author | tedchoc@chromium.org <tedchoc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 03:58:38 +0000 |
---|---|---|
committer | tedchoc@chromium.org <tedchoc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 03:58:38 +0000 |
commit | 3ba4cae36f9c80067c103809fa3f65ad18c7f2d5 (patch) | |
tree | d62946f6f8e8a15cc76d37fe8f2c89117a6b35d8 /content/browser/renderer_host/test_render_view_host.h | |
parent | dc87a404f3c9f0d64df6fc208b9857e8d115eba3 (diff) | |
download | chromium_src-3ba4cae36f9c80067c103809fa3f65ad18c7f2d5.zip chromium_src-3ba4cae36f9c80067c103809fa3f65ad18c7f2d5.tar.gz chromium_src-3ba4cae36f9c80067c103809fa3f65ad18c7f2d5.tar.bz2 |
Add support for calculating the position of the top controls in the cc layer.
Provides a means for keeping the top controls in sync with the currently
renderered frame, which will allow us to move the top controls around the
screen.
BUG=161303
Review URL: https://chromiumcodereview.appspot.com/11552009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177081 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/test_render_view_host.h')
-rw-r--r-- | content/browser/renderer_host/test_render_view_host.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/browser/renderer_host/test_render_view_host.h b/content/browser/renderer_host/test_render_view_host.h index 90d4866..47719069 100644 --- a/content/browser/renderer_host/test_render_view_host.h +++ b/content/browser/renderer_host/test_render_view_host.h @@ -15,6 +15,7 @@ #include "content/browser/renderer_host/render_widget_host_view_base.h" #include "content/public/common/page_transition_types.h" #include "content/public/test/test_renderer_host.h" +#include "ui/gfx/vector2d_f.h" // This file provides a testing framework for mocking out the RenderProcessHost // layer. It allows you to test RenderViewHost, WebContentsImpl, @@ -153,7 +154,9 @@ class TestRenderWidgetHostView : public RenderWidgetHostViewBase { float page_scale_factor, float min_page_scale_factor, float max_page_scale_factor, - const gfx::Size& content_size) OVERRIDE {} + const gfx::Size& content_size, + const gfx::Vector2dF& controls_offset, + const gfx::Vector2dF& content_offset) OVERRIDE {} virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE {} #elif defined(OS_WIN) && !defined(USE_AURA) virtual void WillWmDestroy() OVERRIDE; |