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

Unified Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 9347042: Introduce content::RenderWidgetHostViewPort (in content/port/browser). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/test_render_view_host.cc
diff --git a/content/browser/renderer_host/test_render_view_host.cc b/content/browser/renderer_host/test_render_view_host.cc
index 7cabedfbacc3109330903542fba3e6885c4cd1fb..8a529edfa7dcf738ef7ef178156a4b7de6002347 100644
--- a/content/browser/renderer_host/test_render_view_host.cc
+++ b/content/browser/renderer_host/test_render_view_host.cc
@@ -79,7 +79,7 @@ TestRenderViewHost::TestRenderViewHost(SiteInstance* instance,
// For normal RenderViewHosts, this is freed when |Shutdown()| is called.
// For TestRenderViewHost, the view is explicitly deleted in the destructor
// below, because TestRenderWidgetHostView::Destroy() doesn't |delete this|.
- SetView(new TestRenderWidgetHostView(this));
+ SetView(new content::TestRenderWidgetHostView(this));
}
TestRenderViewHost::~TestRenderViewHost() {
@@ -154,6 +154,8 @@ void TestRenderViewHost::set_contents_mime_type(const std::string& mime_type) {
contents_mime_type_ = mime_type;
}
+namespace content {
+
TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
: rwh_(rwh),
is_showing_(false) {
@@ -306,6 +308,8 @@ bool TestRenderWidgetHostView::LockMouse() {
void TestRenderWidgetHostView::UnlockMouse() {
}
+} // namespace content
+
TestRenderViewHostFactory::TestRenderViewHostFactory(
content::RenderProcessHostFactory* rph_factory)
: render_process_host_factory_(rph_factory) {
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/browser/tab_contents/interstitial_page_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698