| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1802 | 1802 |
| 1803 void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) { | 1803 void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) { |
| 1804 Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode)); | 1804 Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode)); |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 void RenderFrameHostImpl::SetAccessibilityCallbackForTesting( | 1807 void RenderFrameHostImpl::SetAccessibilityCallbackForTesting( |
| 1808 const base::Callback<void(ui::AXEvent, int)>& callback) { | 1808 const base::Callback<void(ui::AXEvent, int)>& callback) { |
| 1809 accessibility_testing_callback_ = callback; | 1809 accessibility_testing_callback_ = callback; |
| 1810 } | 1810 } |
| 1811 | 1811 |
| 1812 void RenderFrameHostImpl::SetTextTrackSettings( |
| 1813 const FrameMsg_TextTrackSettings_Params& params) { |
| 1814 DCHECK(!GetParent()); |
| 1815 Send(new FrameMsg_SetTextTrackSettings(routing_id_, params)); |
| 1816 } |
| 1817 |
| 1812 const ui::AXTree* RenderFrameHostImpl::GetAXTreeForTesting() { | 1818 const ui::AXTree* RenderFrameHostImpl::GetAXTreeForTesting() { |
| 1813 return ax_tree_for_testing_.get(); | 1819 return ax_tree_for_testing_.get(); |
| 1814 } | 1820 } |
| 1815 | 1821 |
| 1816 BrowserAccessibilityManager* | 1822 BrowserAccessibilityManager* |
| 1817 RenderFrameHostImpl::GetOrCreateBrowserAccessibilityManager() { | 1823 RenderFrameHostImpl::GetOrCreateBrowserAccessibilityManager() { |
| 1818 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( | 1824 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( |
| 1819 render_view_host_->GetView()); | 1825 render_view_host_->GetView()); |
| 1820 if (view && | 1826 if (view && |
| 1821 !browser_accessibility_manager_ && | 1827 !browser_accessibility_manager_ && |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 void RenderFrameHostImpl::DidUseGeolocationPermission() { | 1950 void RenderFrameHostImpl::DidUseGeolocationPermission() { |
| 1945 RenderFrameHost* top_frame = frame_tree_node()->frame_tree()->GetMainFrame(); | 1951 RenderFrameHost* top_frame = frame_tree_node()->frame_tree()->GetMainFrame(); |
| 1946 GetContentClient()->browser()->RegisterPermissionUsage( | 1952 GetContentClient()->browser()->RegisterPermissionUsage( |
| 1947 PermissionType::GEOLOCATION, | 1953 PermissionType::GEOLOCATION, |
| 1948 delegate_->GetAsWebContents(), | 1954 delegate_->GetAsWebContents(), |
| 1949 GetLastCommittedURL().GetOrigin(), | 1955 GetLastCommittedURL().GetOrigin(), |
| 1950 top_frame->GetLastCommittedURL().GetOrigin()); | 1956 top_frame->GetLastCommittedURL().GetOrigin()); |
| 1951 } | 1957 } |
| 1952 | 1958 |
| 1953 } // namespace content | 1959 } // namespace content |
| OLD | NEW |