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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.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: Address alexmos@ comments 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/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 params.swapped_out = !is_active_; 330 params.swapped_out = !is_active_;
331 params.replicated_frame_state = replicated_frame_state; 331 params.replicated_frame_state = replicated_frame_state;
332 params.proxy_routing_id = proxy_route_id; 332 params.proxy_routing_id = proxy_route_id;
333 params.hidden = GetWidget()->is_hidden(); 333 params.hidden = GetWidget()->is_hidden();
334 params.never_visible = delegate_->IsNeverVisible(); 334 params.never_visible = delegate_->IsNeverVisible();
335 params.window_was_created_with_opener = window_was_created_with_opener; 335 params.window_was_created_with_opener = window_was_created_with_opener;
336 params.next_page_id = next_page_id; 336 params.next_page_id = next_page_id;
337 params.enable_auto_resize = GetWidget()->auto_resize_enabled(); 337 params.enable_auto_resize = GetWidget()->auto_resize_enabled();
338 params.min_size = GetWidget()->min_size_for_auto_resize(); 338 params.min_size = GetWidget()->min_size_for_auto_resize();
339 params.max_size = GetWidget()->max_size_for_auto_resize(); 339 params.max_size = GetWidget()->max_size_for_auto_resize();
340 params.page_zoom_level = delegate_->PageZoomLevel();
340 GetWidget()->GetResizeParams(&params.initial_size); 341 GetWidget()->GetResizeParams(&params.initial_size);
341 342
342 if (!Send(new ViewMsg_New(params))) 343 if (!Send(new ViewMsg_New(params)))
343 return false; 344 return false;
344 GetWidget()->SetInitialRenderSizeParams(params.initial_size); 345 GetWidget()->SetInitialRenderSizeParams(params.initial_size);
345 346
346 // If the RWHV has not yet been set, the surface ID namespace will get 347 // If the RWHV has not yet been set, the surface ID namespace will get
347 // passed down by the call to SetView(). 348 // passed down by the call to SetView().
348 if (GetWidget()->GetView()) { 349 if (GetWidget()->GetView()) {
349 Send(new ViewMsg_SetSurfaceIdNamespace( 350 Send(new ViewMsg_SetSurfaceIdNamespace(
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 } else { 1352 } else {
1352 render_view_ready_on_process_launch_ = true; 1353 render_view_ready_on_process_launch_ = true;
1353 } 1354 }
1354 } 1355 }
1355 1356
1356 void RenderViewHostImpl::RenderViewReady() { 1357 void RenderViewHostImpl::RenderViewReady() {
1357 delegate_->RenderViewReady(this); 1358 delegate_->RenderViewReady(this);
1358 } 1359 }
1359 1360
1360 } // namespace content 1361 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698