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

Side by Side Diff: content/test/test_web_contents.cc

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert to use PageMsg instead of FrameMsg. Created 4 years, 8 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
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/test/test_web_contents.h" 5 #include "content/test/test_web_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/browser_url_handler_impl.h" 9 #include "content/browser/browser_url_handler_impl.h"
10 #include "content/browser/frame_host/cross_process_frame_connector.h" 10 #include "content/browser/frame_host/cross_process_frame_connector.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 bool TestWebContents::CreateRenderViewForRenderManager( 157 bool TestWebContents::CreateRenderViewForRenderManager(
158 RenderViewHost* render_view_host, 158 RenderViewHost* render_view_host,
159 int opener_frame_routing_id, 159 int opener_frame_routing_id,
160 int proxy_routing_id, 160 int proxy_routing_id,
161 const FrameReplicationState& replicated_frame_state) { 161 const FrameReplicationState& replicated_frame_state) {
162 UpdateMaxPageIDIfNecessary(render_view_host); 162 UpdateMaxPageIDIfNecessary(render_view_host);
163 // This will go to a TestRenderViewHost. 163 // This will go to a TestRenderViewHost.
164 static_cast<RenderViewHostImpl*>(render_view_host) 164 static_cast<RenderViewHostImpl*>(render_view_host)
165 ->CreateRenderView(opener_frame_routing_id, proxy_routing_id, -1, 165 ->CreateRenderView(opener_frame_routing_id, proxy_routing_id, -1,
166 replicated_frame_state, false); 166 replicated_frame_state, false, 0.0);
167 return true; 167 return true;
168 } 168 }
169 169
170 WebContents* TestWebContents::Clone() { 170 WebContents* TestWebContents::Clone() {
171 WebContentsImpl* contents = 171 WebContentsImpl* contents =
172 Create(GetBrowserContext(), SiteInstance::Create(GetBrowserContext())); 172 Create(GetBrowserContext(), SiteInstance::Create(GetBrowserContext()));
173 contents->GetController().CopyStateFrom(controller_); 173 contents->GetController().CopyStateFrom(controller_);
174 return contents; 174 return contents;
175 } 175 }
176 176
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 341 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
342 } 342 }
343 343
344 void TestWebContents::SaveFrameWithHeaders(const GURL& url, 344 void TestWebContents::SaveFrameWithHeaders(const GURL& url,
345 const Referrer& referrer, 345 const Referrer& referrer,
346 const std::string& headers) { 346 const std::string& headers) {
347 save_frame_headers_ = headers; 347 save_frame_headers_ = headers;
348 } 348 }
349 349
350 } // namespace content 350 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698