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

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

Issue 1851793002: Implement a shell of FindRequestManager, and hook it up to WebContentsImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <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 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2504 void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) { 2504 void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) {
2505 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, selected_index)); 2505 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, selected_index));
2506 } 2506 }
2507 2507
2508 void RenderFrameHostImpl::DidCancelPopupMenu() { 2508 void RenderFrameHostImpl::DidCancelPopupMenu() {
2509 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1)); 2509 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1));
2510 } 2510 }
2511 2511
2512 #elif defined(OS_ANDROID) 2512 #elif defined(OS_ANDROID)
2513 2513
2514 void RenderFrameHostImpl::ActivateNearestFindResult(int request_id,
2515 float x,
2516 float y) {
2517 Send(
2518 new InputMsg_ActivateNearestFindResult(GetRoutingID(), request_id, x, y));
2519 }
2520
2521 void RenderFrameHostImpl::RequestFindMatchRects(int current_version) {
2522 Send(new FrameMsg_FindMatchRects(GetRoutingID(), current_version));
2523 }
2524
2525 void RenderFrameHostImpl::DidSelectPopupMenuItems( 2514 void RenderFrameHostImpl::DidSelectPopupMenuItems(
2526 const std::vector<int>& selected_indices) { 2515 const std::vector<int>& selected_indices) {
2527 Send(new FrameMsg_SelectPopupMenuItems(routing_id_, false, selected_indices)); 2516 Send(new FrameMsg_SelectPopupMenuItems(routing_id_, false, selected_indices));
2528 } 2517 }
2529 2518
2530 void RenderFrameHostImpl::DidCancelPopupMenu() { 2519 void RenderFrameHostImpl::DidCancelPopupMenu() {
2531 Send(new FrameMsg_SelectPopupMenuItems( 2520 Send(new FrameMsg_SelectPopupMenuItems(
2532 routing_id_, true, std::vector<int>())); 2521 routing_id_, true, std::vector<int>()));
2533 } 2522 }
2534 2523
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); 2720 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame();
2732 if (!focused_frame_tree_node) 2721 if (!focused_frame_tree_node)
2733 return; 2722 return;
2734 RenderFrameHostImpl* focused_frame = 2723 RenderFrameHostImpl* focused_frame =
2735 focused_frame_tree_node->current_frame_host(); 2724 focused_frame_tree_node->current_frame_host();
2736 DCHECK(focused_frame); 2725 DCHECK(focused_frame);
2737 dst->focused_tree_id = focused_frame->GetAXTreeID(); 2726 dst->focused_tree_id = focused_frame->GetAXTreeID();
2738 } 2727 }
2739 2728
2740 } // namespace content 2729 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698