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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.h

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/browser/renderer_host/render_view_host_impl.h" 14 #include "content/browser/renderer_host/render_view_host_impl.h"
15 #include "content/browser/renderer_host/render_widget_host_view_base.h" 15 #include "content/browser/renderer_host/render_widget_host_view_base.h"
16 #include "content/public/common/page_transition_types.h" 16 #include "content/public/common/page_transition_types.h"
17 #include "content/public/test/test_renderer_host.h" 17 #include "content/public/test/test_renderer_host.h"
18 #include "ui/gfx/vector2d_f.h"
18 19
19 // This file provides a testing framework for mocking out the RenderProcessHost 20 // This file provides a testing framework for mocking out the RenderProcessHost
20 // layer. It allows you to test RenderViewHost, WebContentsImpl, 21 // layer. It allows you to test RenderViewHost, WebContentsImpl,
21 // NavigationController, and other layers above that without running an actual 22 // NavigationController, and other layers above that without running an actual
22 // renderer process. 23 // renderer process.
23 // 24 //
24 // To use, derive your test base class from RenderViewHostImplTestHarness. 25 // To use, derive your test base class from RenderViewHostImplTestHarness.
25 26
26 struct ViewHostMsg_FrameNavigate_Params; 27 struct ViewHostMsg_FrameNavigate_Params;
27 28
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual void ShowDisambiguationPopup( 147 virtual void ShowDisambiguationPopup(
147 const gfx::Rect& target_rect, 148 const gfx::Rect& target_rect,
148 const SkBitmap& zoomed_bitmap) OVERRIDE {} 149 const SkBitmap& zoomed_bitmap) OVERRIDE {}
149 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE {} 150 virtual void SetCachedBackgroundColor(SkColor color) OVERRIDE {}
150 virtual void SetCachedPageScaleFactorLimits(float minimum_scale, 151 virtual void SetCachedPageScaleFactorLimits(float minimum_scale,
151 float maximum_scale) OVERRIDE {} 152 float maximum_scale) OVERRIDE {}
152 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset, 153 virtual void UpdateFrameInfo(const gfx::Vector2d& scroll_offset,
153 float page_scale_factor, 154 float page_scale_factor,
154 float min_page_scale_factor, 155 float min_page_scale_factor,
155 float max_page_scale_factor, 156 float max_page_scale_factor,
156 const gfx::Size& content_size) OVERRIDE {} 157 const gfx::Size& content_size,
158 const gfx::Vector2dF& controls_offset,
159 const gfx::Vector2dF& content_offset) OVERRIDE {}
157 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE {} 160 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE {}
158 #elif defined(OS_WIN) && !defined(USE_AURA) 161 #elif defined(OS_WIN) && !defined(USE_AURA)
159 virtual void WillWmDestroy() OVERRIDE; 162 virtual void WillWmDestroy() OVERRIDE;
160 #endif 163 #endif
161 #if defined(OS_POSIX) || defined(USE_AURA) 164 #if defined(OS_POSIX) || defined(USE_AURA)
162 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} 165 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {}
163 #endif 166 #endif
164 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; 167 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
165 virtual void SetHasHorizontalScrollbar( 168 virtual void SetHasHorizontalScrollbar(
166 bool has_horizontal_scrollbar) OVERRIDE { } 169 bool has_horizontal_scrollbar) OVERRIDE { }
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 TestRenderViewHost* active_test_rvh(); 345 TestRenderViewHost* active_test_rvh();
343 TestWebContents* contents(); 346 TestWebContents* contents();
344 347
345 private: 348 private:
346 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 349 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
347 }; 350 };
348 351
349 } // namespace content 352 } // namespace content
350 353
351 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 354 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_guest.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698