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

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

Issue 2474323002: Implement WebContentsViewChildFrame::TakeFocus. (Closed)
Patch Set: Remove logging code. Created 3 years, 11 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 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 <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2504 2504
2505 int opener_routing_id = 2505 int opener_routing_id =
2506 frame_tree_node_->render_manager()->GetOpenerRoutingID(GetSiteInstance()); 2506 frame_tree_node_->render_manager()->GetOpenerRoutingID(GetSiteInstance());
2507 Send(new FrameMsg_UpdateOpener(GetRoutingID(), opener_routing_id)); 2507 Send(new FrameMsg_UpdateOpener(GetRoutingID(), opener_routing_id));
2508 } 2508 }
2509 2509
2510 void RenderFrameHostImpl::SetFocusedFrame() { 2510 void RenderFrameHostImpl::SetFocusedFrame() {
2511 Send(new FrameMsg_SetFocusedFrame(routing_id_)); 2511 Send(new FrameMsg_SetFocusedFrame(routing_id_));
2512 } 2512 }
2513 2513
2514 void RenderFrameHostImpl::AdvanceFocus(blink::WebFocusType type,
2515 RenderFrameProxyHost* source_proxy) {
2516 DCHECK(!source_proxy ||
2517 (source_proxy->GetProcess()->GetID() == GetProcess()->GetID()));
2518 int32_t source_proxy_routing_id = MSG_ROUTING_NONE;
2519 if (source_proxy)
2520 source_proxy_routing_id = source_proxy->GetRoutingID();
2521 Send(
2522 new FrameMsg_AdvanceFocus(GetRoutingID(), type, source_proxy_routing_id));
2523 }
2524
2514 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before, 2525 void RenderFrameHostImpl::ExtendSelectionAndDelete(size_t before,
2515 size_t after) { 2526 size_t after) {
2516 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after)); 2527 Send(new InputMsg_ExtendSelectionAndDelete(routing_id_, before, after));
2517 } 2528 }
2518 2529
2519 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { 2530 void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) {
2520 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after)); 2531 Send(new InputMsg_DeleteSurroundingText(routing_id_, before, after));
2521 } 2532 }
2522 2533
2523 void RenderFrameHostImpl::JavaScriptDialogClosed( 2534 void RenderFrameHostImpl::JavaScriptDialogClosed(
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
3347 // There is no pending NavigationEntry in these cases, so pass 0 as the 3358 // There is no pending NavigationEntry in these cases, so pass 0 as the
3348 // pending_nav_entry_id. If the previous handle was a prematurely aborted 3359 // pending_nav_entry_id. If the previous handle was a prematurely aborted
3349 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. 3360 // navigation loaded via LoadDataWithBaseURL, propagate the entry id.
3350 return NavigationHandleImpl::Create( 3361 return NavigationHandleImpl::Create(
3351 params.url, frame_tree_node_, is_renderer_initiated, 3362 params.url, frame_tree_node_, is_renderer_initiated,
3352 params.was_within_same_page, base::TimeTicks::Now(), 3363 params.was_within_same_page, base::TimeTicks::Now(),
3353 entry_id_for_data_nav, false); // started_from_context_menu 3364 entry_id_for_data_nav, false); // started_from_context_menu
3354 } 3365 }
3355 3366
3356 } // namespace content 3367 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698