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

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

Issue 1500873002: Implement sequential focus navigation for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Daniel's comments Created 5 years 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 <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
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
OLDNEW
« no previous file with comments | « content/renderer/render_frame_proxy.h ('k') | third_party/WebKit/Source/core/frame/RemoteFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698