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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2652643004: Make PageScaleFactor work for oopif subframes.
Patch Set: Put function prototype in correct place. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index ef0e15cfe089cd45d0028deb540f829369f6a4d5..c5563bf6c193bee068b2ab22ea9fc838cc22e916 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -766,6 +766,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
IPC_MESSAGE_HANDLER(FrameHostMsg_HidePopup, OnHidePopup)
#endif
IPC_MESSAGE_HANDLER(FrameHostMsg_ShowCreatedWindow, OnShowCreatedWindow)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_RestorePageScaleFactorOnLoad,
+ OnSetPageScaleFactorForSubframes)
IPC_END_MESSAGE_MAP()
// No further actions here, since we may have been deleted.
@@ -2239,6 +2241,17 @@ void RenderFrameHostImpl::OnShowCreatedWindow(int pending_widget_routing_id,
disposition, initial_rect, user_gesture);
}
+void RenderFrameHostImpl::OnSetPageScaleFactorForSubframes(
+ double page_scale_factor) {
+ // Only the main frame should be receiving this message.
+ if (!frame_tree_node_->IsMainFrame()) {
+ NOTREACHED();
+ return;
+ }
+
+ delegate_->SetPageScaleFactorForSubframes(page_scale_factor);
+}
+
void RenderFrameHostImpl::RegisterMojoInterfaces() {
device::GeolocationServiceContext* geolocation_service_context =
delegate_ ? delegate_->GetGeolocationServiceContext() : NULL;
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698