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

Side by Side Diff: content/renderer/render_frame_proxy.cc

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer/render_frame_proxy.h" 5 #include "content/renderer/render_frame_proxy.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 IPC_MESSAGE_HANDLER(FrameMsg_DidStopLoading, OnDidStopLoading) 262 IPC_MESSAGE_HANDLER(FrameMsg_DidStopLoading, OnDidStopLoading)
263 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateSandboxFlags, OnDidUpdateSandboxFlags) 263 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateSandboxFlags, OnDidUpdateSandboxFlags)
264 IPC_MESSAGE_HANDLER(FrameMsg_DispatchLoad, OnDispatchLoad) 264 IPC_MESSAGE_HANDLER(FrameMsg_DispatchLoad, OnDispatchLoad)
265 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateName, OnDidUpdateName) 265 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateName, OnDidUpdateName)
266 IPC_MESSAGE_HANDLER(FrameMsg_AddContentSecurityPolicy, 266 IPC_MESSAGE_HANDLER(FrameMsg_AddContentSecurityPolicy,
267 OnAddContentSecurityPolicy) 267 OnAddContentSecurityPolicy)
268 IPC_MESSAGE_HANDLER(FrameMsg_ResetContentSecurityPolicy, 268 IPC_MESSAGE_HANDLER(FrameMsg_ResetContentSecurityPolicy,
269 OnResetContentSecurityPolicy) 269 OnResetContentSecurityPolicy)
270 IPC_MESSAGE_HANDLER(FrameMsg_EnforceStrictMixedContentChecking, 270 IPC_MESSAGE_HANDLER(FrameMsg_EnforceStrictMixedContentChecking,
271 OnEnforceStrictMixedContentChecking) 271 OnEnforceStrictMixedContentChecking)
272 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
273 OnSetFrameOwnerProperties)
272 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin) 274 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateOrigin, OnDidUpdateOrigin)
273 IPC_MESSAGE_HANDLER(InputMsg_SetFocus, OnSetPageFocus) 275 IPC_MESSAGE_HANDLER(InputMsg_SetFocus, OnSetPageFocus)
274 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) 276 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
275 IPC_MESSAGE_UNHANDLED(handled = false) 277 IPC_MESSAGE_UNHANDLED(handled = false)
276 IPC_END_MESSAGE_MAP() 278 IPC_END_MESSAGE_MAP()
277 279
278 // Note: If |handled| is true, |this| may have been deleted. 280 // Note: If |handled| is true, |this| may have been deleted.
279 return handled; 281 return handled;
280 } 282 }
281 283
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 void RenderFrameProxy::OnResetContentSecurityPolicy() { 349 void RenderFrameProxy::OnResetContentSecurityPolicy() {
348 web_frame_->resetReplicatedContentSecurityPolicy(); 350 web_frame_->resetReplicatedContentSecurityPolicy();
349 } 351 }
350 352
351 void RenderFrameProxy::OnEnforceStrictMixedContentChecking( 353 void RenderFrameProxy::OnEnforceStrictMixedContentChecking(
352 bool should_enforce) { 354 bool should_enforce) {
353 web_frame_->setReplicatedShouldEnforceStrictMixedContentChecking( 355 web_frame_->setReplicatedShouldEnforceStrictMixedContentChecking(
354 should_enforce); 356 should_enforce);
355 } 357 }
356 358
359 void RenderFrameProxy::OnSetFrameOwnerProperties(
360 const blink::WebFrameOwnerProperties& properties) {
361 web_frame_->setFrameOwnerProperties(properties);
362 }
363
357 void RenderFrameProxy::OnDidUpdateOrigin( 364 void RenderFrameProxy::OnDidUpdateOrigin(
358 const url::Origin& origin, 365 const url::Origin& origin,
359 bool is_potentially_trustworthy_unique_origin) { 366 bool is_potentially_trustworthy_unique_origin) {
360 web_frame_->setReplicatedOrigin(origin); 367 web_frame_->setReplicatedOrigin(origin);
361 web_frame_->setReplicatedPotentiallyTrustworthyUniqueOrigin( 368 web_frame_->setReplicatedPotentiallyTrustworthyUniqueOrigin(
362 is_potentially_trustworthy_unique_origin); 369 is_potentially_trustworthy_unique_origin);
363 } 370 }
364 371
365 void RenderFrameProxy::OnSetPageFocus(bool is_focused) { 372 void RenderFrameProxy::OnSetPageFocus(bool is_focused) {
366 render_view_->SetFocus(is_focused); 373 render_view_->SetFocus(is_focused);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 blink::WebLocalFrame* source) { 487 blink::WebLocalFrame* source) {
481 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 488 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
482 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 489 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
483 } 490 }
484 491
485 void RenderFrameProxy::frameFocused() { 492 void RenderFrameProxy::frameFocused() {
486 Send(new FrameHostMsg_FrameFocused(routing_id_)); 493 Send(new FrameHostMsg_FrameFocused(routing_id_));
487 } 494 }
488 495
489 } // namespace 496 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/render_frame_proxy.h ('k') | content/test/data/page_with_allowfullscreen_frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698