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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2474323002: Implement WebContentsViewChildFrame::TakeFocus. (Closed)
Patch Set: Conflicted with my own cl https://codereview.chromium.org/2455133005/ Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 2480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2491 2491
2492 int opener_routing_id = 2492 int opener_routing_id =
2493 frame_tree_node_->render_manager()->GetOpenerRoutingID(GetSiteInstance()); 2493 frame_tree_node_->render_manager()->GetOpenerRoutingID(GetSiteInstance());
2494 Send(new FrameMsg_UpdateOpener(GetRoutingID(), opener_routing_id)); 2494 Send(new FrameMsg_UpdateOpener(GetRoutingID(), opener_routing_id));
2495 } 2495 }
2496 2496
2497 void RenderFrameHostImpl::SetFocusedFrame() { 2497 void RenderFrameHostImpl::SetFocusedFrame() {
2498 Send(new FrameMsg_SetFocusedFrame(routing_id_)); 2498 Send(new FrameMsg_SetFocusedFrame(routing_id_));
2499 } 2499 }
2500 2500
2501 void RenderFrameHostImpl::AdvanceFocus(blink::WebFocusType type,
2502 RenderFrameProxyHost* source_proxy) {
2503 DCHECK(!source_proxy ||
2504 (source_proxy->GetProcess()->GetID() == GetProcess()->GetID()));
2505 int32_t source_proxy_routing_id = MSG_ROUTING_NONE;
2506 if (source_proxy)
2507 source_proxy_routing_id = source_proxy->GetRoutingID();
2508 Send(
2509 new FrameMsg_AdvanceFocus(GetRoutingID(), type, source_proxy_routing_id));
2510 }
2511
2501 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, 2512 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before,
2502 size_t after) { 2513 size_t after) {
2503 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); 2514 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after));
2504 } 2515 }
2505 2516
2506 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { 2517 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) {
2507 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); 2518 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after));
2508 } 2519 }
2509 2520
2510 void RenderFrameHostImpl::JavaScriptDialogClosed( 2521 void RenderFrameHostImpl::JavaScriptDialogClosed(
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
3304 // There is no pending NavigationEntry in these cases, so pass 0 as the 3315 // There is no pending NavigationEntry in these cases, so pass 0 as the
3305 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3316 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3306 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3317 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3307 return NavigationHandleImpl::Create( 3318 return NavigationHandleImpl::Create(
3308 params.url, frame_tree_node_, is_renderer_initiated, 3319 params.url, frame_tree_node_, is_renderer_initiated,
3309 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), 3320 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(),
3310 entry_id_for_data_nav, false); // started_from_context_menu 3321 entry_id_for_data_nav, false); // started_from_context_menu
3311 } 3322 }
3312 3323
3313 } // namespace content 3324 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698