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

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

Issue 2883033003: Propagate inert state to OOPIFs when a modal dialog is active (Closed)
Patch Set: Rebase only Created 3 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 void RenderFrameProxy::UpdateRemoteViewportIntersection( 501 void RenderFrameProxy::UpdateRemoteViewportIntersection(
502 const blink::WebRect& viewportIntersection) { 502 const blink::WebRect& viewportIntersection) {
503 Send(new FrameHostMsg_UpdateViewportIntersection( 503 Send(new FrameHostMsg_UpdateViewportIntersection(
504 routing_id_, gfx::Rect(viewportIntersection))); 504 routing_id_, gfx::Rect(viewportIntersection)));
505 } 505 }
506 506
507 void RenderFrameProxy::VisibilityChanged(bool visible) { 507 void RenderFrameProxy::VisibilityChanged(bool visible) {
508 Send(new FrameHostMsg_VisibilityChanged(routing_id_, visible)); 508 Send(new FrameHostMsg_VisibilityChanged(routing_id_, visible));
509 } 509 }
510 510
511 void RenderFrameProxy::SetIsInert(bool inert) {
512 Send(new FrameHostMsg_SetIsInert(routing_id_, inert));
513 }
514
511 void RenderFrameProxy::DidChangeOpener(blink::WebFrame* opener) { 515 void RenderFrameProxy::DidChangeOpener(blink::WebFrame* opener) {
512 // A proxy shouldn't normally be disowning its opener. It is possible to get 516 // A proxy shouldn't normally be disowning its opener. It is possible to get
513 // here when a proxy that is being detached clears its opener, in which case 517 // here when a proxy that is being detached clears its opener, in which case
514 // there is no need to notify the browser process. 518 // there is no need to notify the browser process.
515 if (!opener) 519 if (!opener)
516 return; 520 return;
517 521
518 // Only a LocalFrame (i.e., the caller of window.open) should be able to 522 // Only a LocalFrame (i.e., the caller of window.open) should be able to
519 // update another frame's opener. 523 // update another frame's opener.
520 DCHECK(opener->IsWebLocalFrame()); 524 DCHECK(opener->IsWebLocalFrame());
521 525
522 int opener_routing_id = 526 int opener_routing_id =
523 RenderFrameImpl::FromWebFrame(opener->ToWebLocalFrame())->GetRoutingID(); 527 RenderFrameImpl::FromWebFrame(opener->ToWebLocalFrame())->GetRoutingID();
524 Send(new FrameHostMsg_DidChangeOpener(routing_id_, opener_routing_id)); 528 Send(new FrameHostMsg_DidChangeOpener(routing_id_, opener_routing_id));
525 } 529 }
526 530
527 void RenderFrameProxy::AdvanceFocus(blink::WebFocusType type, 531 void RenderFrameProxy::AdvanceFocus(blink::WebFocusType type,
528 blink::WebLocalFrame* source) { 532 blink::WebLocalFrame* source) {
529 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 533 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
530 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 534 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
531 } 535 }
532 536
533 void RenderFrameProxy::FrameFocused() { 537 void RenderFrameProxy::FrameFocused() {
534 Send(new FrameHostMsg_FrameFocused(routing_id_)); 538 Send(new FrameHostMsg_FrameFocused(routing_id_));
535 } 539 }
536 540
537 } // namespace 541 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698