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 <map> | 7 #include <map> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 | 437 |
438 // Only a LocalFrame (i.e., the caller of window.open) should be able to | 438 // Only a LocalFrame (i.e., the caller of window.open) should be able to |
439 // update another frame's opener. | 439 // update another frame's opener. |
440 DCHECK(opener->isWebLocalFrame()); | 440 DCHECK(opener->isWebLocalFrame()); |
441 | 441 |
442 int opener_routing_id = | 442 int opener_routing_id = |
443 RenderFrameImpl::FromWebFrame(opener->toWebLocalFrame())->GetRoutingID(); | 443 RenderFrameImpl::FromWebFrame(opener->toWebLocalFrame())->GetRoutingID(); |
444 Send(new FrameHostMsg_DidChangeOpener(routing_id_, opener_routing_id)); | 444 Send(new FrameHostMsg_DidChangeOpener(routing_id_, opener_routing_id)); |
445 } | 445 } |
446 | 446 |
| 447 void RenderFrameProxy::advanceFocus(blink::WebFocusType type, |
| 448 blink::WebLocalFrame* source) { |
| 449 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); |
| 450 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); |
| 451 } |
| 452 |
447 } // namespace | 453 } // namespace |
OLD | NEW |