OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 | 825 |
826 void RenderViewHostImpl::RequestFindMatchRects(int current_version) { | 826 void RenderViewHostImpl::RequestFindMatchRects(int current_version) { |
827 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version)); | 827 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version)); |
828 } | 828 } |
829 | 829 |
830 void RenderViewHostImpl::DisableFullscreenEncryptedMediaPlayback() { | 830 void RenderViewHostImpl::DisableFullscreenEncryptedMediaPlayback() { |
831 media_player_manager_->DisableFullscreenEncryptedMediaPlayback(); | 831 media_player_manager_->DisableFullscreenEncryptedMediaPlayback(); |
832 } | 832 } |
833 #endif | 833 #endif |
834 | 834 |
| 835 void RenderViewHostImpl::PauseGeolocation() { |
| 836 BrowserThread::PostTask( |
| 837 BrowserThread::IO, FROM_HERE, |
| 838 base::Bind(&GeolocationDispatcherHost::PauseOrResume, |
| 839 static_cast<RenderProcessHostImpl*>(GetProcess())-> |
| 840 geolocation_dispatcher_host(), GetRoutingID(), true)); |
| 841 } |
| 842 |
| 843 void RenderViewHostImpl::ResumeGeolocation() { |
| 844 BrowserThread::PostTask( |
| 845 BrowserThread::IO, FROM_HERE, |
| 846 base::Bind(&GeolocationDispatcherHost::PauseOrResume, |
| 847 static_cast<RenderProcessHostImpl*>(GetProcess())-> |
| 848 geolocation_dispatcher_host(), GetRoutingID(), false)); |
| 849 } |
| 850 |
835 void RenderViewHostImpl::DragTargetDragEnter( | 851 void RenderViewHostImpl::DragTargetDragEnter( |
836 const DropData& drop_data, | 852 const DropData& drop_data, |
837 const gfx::Point& client_pt, | 853 const gfx::Point& client_pt, |
838 const gfx::Point& screen_pt, | 854 const gfx::Point& screen_pt, |
839 WebDragOperationsMask operations_allowed, | 855 WebDragOperationsMask operations_allowed, |
840 int key_modifiers) { | 856 int key_modifiers) { |
841 const int renderer_id = GetProcess()->GetID(); | 857 const int renderer_id = GetProcess()->GetID(); |
842 ChildProcessSecurityPolicyImpl* policy = | 858 ChildProcessSecurityPolicyImpl* policy = |
843 ChildProcessSecurityPolicyImpl::GetInstance(); | 859 ChildProcessSecurityPolicyImpl::GetInstance(); |
844 | 860 |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2269 void RenderViewHostImpl::AttachToFrameTree() { | 2285 void RenderViewHostImpl::AttachToFrameTree() { |
2270 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2286 FrameTree* frame_tree = delegate_->GetFrameTree(); |
2271 | 2287 |
2272 frame_tree->SwapMainFrame(main_render_frame_host_.get()); | 2288 frame_tree->SwapMainFrame(main_render_frame_host_.get()); |
2273 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2289 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
2274 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2290 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
2275 } | 2291 } |
2276 } | 2292 } |
2277 | 2293 |
2278 } // namespace content | 2294 } // namespace content |
OLD | NEW |