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

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

Issue 1600953003: Move find-in-page code from RenderView to RenderFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments by nasko@, git cl format. Created 4 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 <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2334 void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) { 2334 void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) {
2335 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, selected_index)); 2335 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, selected_index));
2336 } 2336 }
2337 2337
2338 void RenderFrameHostImpl::DidCancelPopupMenu() { 2338 void RenderFrameHostImpl::DidCancelPopupMenu() {
2339 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1)); 2339 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1));
2340 } 2340 }
2341 2341
2342 #elif defined(OS_ANDROID) 2342 #elif defined(OS_ANDROID)
2343 2343
2344 void RenderFrameHostImpl::ActivateNearestFindResult(int request_id,
2345 float x,
2346 float y) {
2347 Send(
2348 new InputMsg_ActivateNearestFindResult(GetRoutingID(), request_id, x, y));
2349 }
2350
2351 void RenderFrameHostImpl::RequestFindMatchRects(int current_version) {
2352 Send(new FrameMsg_FindMatchRects(GetRoutingID(), current_version));
2353 }
2354
2344 void RenderFrameHostImpl::DidSelectPopupMenuItems( 2355 void RenderFrameHostImpl::DidSelectPopupMenuItems(
2345 const std::vector<int>& selected_indices) { 2356 const std::vector<int>& selected_indices) {
2346 Send(new FrameMsg_SelectPopupMenuItems(routing_id_, false, selected_indices)); 2357 Send(new FrameMsg_SelectPopupMenuItems(routing_id_, false, selected_indices));
2347 } 2358 }
2348 2359
2349 void RenderFrameHostImpl::DidCancelPopupMenu() { 2360 void RenderFrameHostImpl::DidCancelPopupMenu() {
2350 Send(new FrameMsg_SelectPopupMenuItems( 2361 Send(new FrameMsg_SelectPopupMenuItems(
2351 routing_id_, true, std::vector<int>())); 2362 routing_id_, true, std::vector<int>()));
2352 } 2363 }
2353 2364
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 *dst = src; 2542 *dst = src;
2532 2543
2533 if (src.routing_id != -1) 2544 if (src.routing_id != -1)
2534 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2545 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2535 2546
2536 if (src.parent_routing_id != -1) 2547 if (src.parent_routing_id != -1)
2537 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2548 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2538 } 2549 }
2539 2550
2540 } // namespace content 2551 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698