OLD | NEW |
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 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) { | 2511 void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) { |
2512 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, selected_index)); | 2512 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, selected_index)); |
2513 } | 2513 } |
2514 | 2514 |
2515 void RenderFrameHostImpl::DidCancelPopupMenu() { | 2515 void RenderFrameHostImpl::DidCancelPopupMenu() { |
2516 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1)); | 2516 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1)); |
2517 } | 2517 } |
2518 | 2518 |
2519 #elif defined(OS_ANDROID) | 2519 #elif defined(OS_ANDROID) |
2520 | 2520 |
2521 void RenderFrameHostImpl::ActivateNearestFindResult(int request_id, | |
2522 float x, | |
2523 float y) { | |
2524 Send( | |
2525 new InputMsg_ActivateNearestFindResult(GetRoutingID(), request_id, x, y)); | |
2526 } | |
2527 | |
2528 void RenderFrameHostImpl::RequestFindMatchRects(int current_version) { | |
2529 Send(new FrameMsg_FindMatchRects(GetRoutingID(), current_version)); | |
2530 } | |
2531 | |
2532 void RenderFrameHostImpl::DidSelectPopupMenuItems( | 2521 void RenderFrameHostImpl::DidSelectPopupMenuItems( |
2533 const std::vector<int>& selected_indices) { | 2522 const std::vector<int>& selected_indices) { |
2534 Send(new FrameMsg_SelectPopupMenuItems(routing_id_, false, selected_indices)); | 2523 Send(new FrameMsg_SelectPopupMenuItems(routing_id_, false, selected_indices)); |
2535 } | 2524 } |
2536 | 2525 |
2537 void RenderFrameHostImpl::DidCancelPopupMenu() { | 2526 void RenderFrameHostImpl::DidCancelPopupMenu() { |
2538 Send(new FrameMsg_SelectPopupMenuItems( | 2527 Send(new FrameMsg_SelectPopupMenuItems( |
2539 routing_id_, true, std::vector<int>())); | 2528 routing_id_, true, std::vector<int>())); |
2540 } | 2529 } |
2541 | 2530 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2744 } | 2733 } |
2745 | 2734 |
2746 void RenderFrameHostImpl::CreateWebBluetoothService( | 2735 void RenderFrameHostImpl::CreateWebBluetoothService( |
2747 blink::mojom::WebBluetoothServiceRequest request) { | 2736 blink::mojom::WebBluetoothServiceRequest request) { |
2748 DCHECK(!web_bluetooth_service_); | 2737 DCHECK(!web_bluetooth_service_); |
2749 web_bluetooth_service_.reset( | 2738 web_bluetooth_service_.reset( |
2750 new WebBluetoothServiceImpl(this, std::move(request))); | 2739 new WebBluetoothServiceImpl(this, std::move(request))); |
2751 } | 2740 } |
2752 | 2741 |
2753 } // namespace content | 2742 } // namespace content |
OLD | NEW |