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 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1820 | 1820 |
1821 void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) { | 1821 void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) { |
1822 Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode)); | 1822 Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode)); |
1823 } | 1823 } |
1824 | 1824 |
1825 void RenderFrameHostImpl::SetAccessibilityCallbackForTesting( | 1825 void RenderFrameHostImpl::SetAccessibilityCallbackForTesting( |
1826 const base::Callback<void(ui::AXEvent, int)>& callback) { | 1826 const base::Callback<void(ui::AXEvent, int)>& callback) { |
1827 accessibility_testing_callback_ = callback; | 1827 accessibility_testing_callback_ = callback; |
1828 } | 1828 } |
1829 | 1829 |
1830 void RenderFrameHostImpl::SetTextTrackSettings( | |
1831 const FrameMsg_TextTrackSettings_Params& params) { | |
nasko
2015/03/12 20:53:53
Let's add a DCHECK to verify the assumptions that
| |
1832 Send(new FrameMsg_SetTextTrackSettings(routing_id_, params)); | |
1833 } | |
1834 | |
1830 const ui::AXTree* RenderFrameHostImpl::GetAXTreeForTesting() { | 1835 const ui::AXTree* RenderFrameHostImpl::GetAXTreeForTesting() { |
1831 return ax_tree_for_testing_.get(); | 1836 return ax_tree_for_testing_.get(); |
1832 } | 1837 } |
1833 | 1838 |
1834 BrowserAccessibilityManager* | 1839 BrowserAccessibilityManager* |
1835 RenderFrameHostImpl::GetOrCreateBrowserAccessibilityManager() { | 1840 RenderFrameHostImpl::GetOrCreateBrowserAccessibilityManager() { |
1836 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( | 1841 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( |
1837 render_view_host_->GetView()); | 1842 render_view_host_->GetView()); |
1838 if (view && | 1843 if (view && |
1839 !browser_accessibility_manager_ && | 1844 !browser_accessibility_manager_ && |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1959 void RenderFrameHostImpl::DidUseGeolocationPermission() { | 1964 void RenderFrameHostImpl::DidUseGeolocationPermission() { |
1960 RenderFrameHost* top_frame = frame_tree_node()->frame_tree()->GetMainFrame(); | 1965 RenderFrameHost* top_frame = frame_tree_node()->frame_tree()->GetMainFrame(); |
1961 GetContentClient()->browser()->RegisterPermissionUsage( | 1966 GetContentClient()->browser()->RegisterPermissionUsage( |
1962 PERMISSION_GEOLOCATION, | 1967 PERMISSION_GEOLOCATION, |
1963 delegate_->GetAsWebContents(), | 1968 delegate_->GetAsWebContents(), |
1964 GetLastCommittedURL().GetOrigin(), | 1969 GetLastCommittedURL().GetOrigin(), |
1965 top_frame->GetLastCommittedURL().GetOrigin()); | 1970 top_frame->GetLastCommittedURL().GetOrigin()); |
1966 } | 1971 } |
1967 | 1972 |
1968 } // namespace content | 1973 } // namespace content |
OLD | NEW |