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 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2510 void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) { | 2510 void RenderFrameHostImpl::DidSelectPopupMenuItem(int selected_index) { |
2511 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, selected_index)); | 2511 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, selected_index)); |
2512 } | 2512 } |
2513 | 2513 |
2514 void RenderFrameHostImpl::DidCancelPopupMenu() { | 2514 void RenderFrameHostImpl::DidCancelPopupMenu() { |
2515 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1)); | 2515 Send(new FrameMsg_SelectPopupMenuItem(routing_id_, -1)); |
2516 } | 2516 } |
2517 | 2517 |
2518 #elif defined(OS_ANDROID) | 2518 #elif defined(OS_ANDROID) |
2519 | 2519 |
2520 void RenderFrameHostImpl::ActivateNearestFindResult(int request_id, | |
2521 float x, | |
2522 float y) { | |
2523 Send( | |
2524 new InputMsg_ActivateNearestFindResult(GetRoutingID(), request_id, x, y)); | |
2525 } | |
2526 | |
2527 void RenderFrameHostImpl::RequestFindMatchRects(int current_version) { | |
2528 Send(new FrameMsg_FindMatchRects(GetRoutingID(), current_version)); | |
2529 } | |
2530 | |
2531 void RenderFrameHostImpl::DidSelectPopupMenuItems( | 2520 void RenderFrameHostImpl::DidSelectPopupMenuItems( |
2532 const std::vector<int>& selected_indices) { | 2521 const std::vector<int>& selected_indices) { |
2533 Send(new FrameMsg_SelectPopupMenuItems(routing_id_, false, selected_indices)); | 2522 Send(new FrameMsg_SelectPopupMenuItems(routing_id_, false, selected_indices)); |
2534 } | 2523 } |
2535 | 2524 |
2536 void RenderFrameHostImpl::DidCancelPopupMenu() { | 2525 void RenderFrameHostImpl::DidCancelPopupMenu() { |
2537 Send(new FrameMsg_SelectPopupMenuItems( | 2526 Send(new FrameMsg_SelectPopupMenuItems( |
2538 routing_id_, true, std::vector<int>())); | 2527 routing_id_, true, std::vector<int>())); |
2539 } | 2528 } |
2540 | 2529 |
(...skipping 203 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 |