OLD | NEW |
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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 void RenderFrameProxy::UpdateRemoteViewportIntersection( | 512 void RenderFrameProxy::UpdateRemoteViewportIntersection( |
513 const blink::WebRect& viewportIntersection) { | 513 const blink::WebRect& viewportIntersection) { |
514 Send(new FrameHostMsg_UpdateViewportIntersection( | 514 Send(new FrameHostMsg_UpdateViewportIntersection( |
515 routing_id_, gfx::Rect(viewportIntersection))); | 515 routing_id_, gfx::Rect(viewportIntersection))); |
516 } | 516 } |
517 | 517 |
518 void RenderFrameProxy::VisibilityChanged(bool visible) { | 518 void RenderFrameProxy::VisibilityChanged(bool visible) { |
519 Send(new FrameHostMsg_VisibilityChanged(routing_id_, visible)); | 519 Send(new FrameHostMsg_VisibilityChanged(routing_id_, visible)); |
520 } | 520 } |
521 | 521 |
| 522 void RenderFrameProxy::SetIsInert(bool inert) { |
| 523 Send(new FrameHostMsg_SetIsInert(routing_id_, inert)); |
| 524 } |
| 525 |
522 void RenderFrameProxy::DidChangeOpener(blink::WebFrame* opener) { | 526 void RenderFrameProxy::DidChangeOpener(blink::WebFrame* opener) { |
523 // A proxy shouldn't normally be disowning its opener. It is possible to get | 527 // A proxy shouldn't normally be disowning its opener. It is possible to get |
524 // here when a proxy that is being detached clears its opener, in which case | 528 // here when a proxy that is being detached clears its opener, in which case |
525 // there is no need to notify the browser process. | 529 // there is no need to notify the browser process. |
526 if (!opener) | 530 if (!opener) |
527 return; | 531 return; |
528 | 532 |
529 // Only a LocalFrame (i.e., the caller of window.open) should be able to | 533 // Only a LocalFrame (i.e., the caller of window.open) should be able to |
530 // update another frame's opener. | 534 // update another frame's opener. |
531 DCHECK(opener->IsWebLocalFrame()); | 535 DCHECK(opener->IsWebLocalFrame()); |
532 | 536 |
533 int opener_routing_id = | 537 int opener_routing_id = |
534 RenderFrameImpl::FromWebFrame(opener->ToWebLocalFrame())->GetRoutingID(); | 538 RenderFrameImpl::FromWebFrame(opener->ToWebLocalFrame())->GetRoutingID(); |
535 Send(new FrameHostMsg_DidChangeOpener(routing_id_, opener_routing_id)); | 539 Send(new FrameHostMsg_DidChangeOpener(routing_id_, opener_routing_id)); |
536 } | 540 } |
537 | 541 |
538 void RenderFrameProxy::AdvanceFocus(blink::WebFocusType type, | 542 void RenderFrameProxy::AdvanceFocus(blink::WebFocusType type, |
539 blink::WebLocalFrame* source) { | 543 blink::WebLocalFrame* source) { |
540 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); | 544 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); |
541 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); | 545 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); |
542 } | 546 } |
543 | 547 |
544 void RenderFrameProxy::FrameFocused() { | 548 void RenderFrameProxy::FrameFocused() { |
545 Send(new FrameHostMsg_FrameFocused(routing_id_)); | 549 Send(new FrameHostMsg_FrameFocused(routing_id_)); |
546 } | 550 } |
547 | 551 |
548 } // namespace | 552 } // namespace |
OLD | NEW |