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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1867 const std::vector<AXEventNotificationDetails>& details) { | 1867 const std::vector<AXEventNotificationDetails>& details) { |
1868 FOR_EACH_OBSERVER( | 1868 FOR_EACH_OBSERVER( |
1869 WebContentsObserver, observers_, AccessibilityEventReceived(details)); | 1869 WebContentsObserver, observers_, AccessibilityEventReceived(details)); |
1870 } | 1870 } |
1871 | 1871 |
1872 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID( | 1872 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID( |
1873 int browser_plugin_instance_id) { | 1873 int browser_plugin_instance_id) { |
1874 BrowserPluginGuestManager* guest_manager = | 1874 BrowserPluginGuestManager* guest_manager = |
1875 GetBrowserContext()->GetGuestManager(); | 1875 GetBrowserContext()->GetGuestManager(); |
1876 WebContents* guest = guest_manager->GetGuestByInstanceID( | 1876 WebContents* guest = guest_manager->GetGuestByInstanceID( |
1877 this, browser_plugin_instance_id); | 1877 GetRenderProcessHost()->GetID(), browser_plugin_instance_id); |
1878 if (!guest) | 1878 if (!guest) |
1879 return NULL; | 1879 return NULL; |
1880 return guest->GetMainFrame(); | 1880 return guest->GetMainFrame(); |
1881 } | 1881 } |
1882 | 1882 |
1883 GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() { | 1883 GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() { |
1884 return geolocation_service_context_.get(); | 1884 return geolocation_service_context_.get(); |
1885 } | 1885 } |
1886 | 1886 |
1887 void WebContentsImpl::OnShowValidationMessage( | 1887 void WebContentsImpl::OnShowValidationMessage( |
(...skipping 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4514 node->render_manager()->ResumeResponseDeferredAtStart(); | 4514 node->render_manager()->ResumeResponseDeferredAtStart(); |
4515 } | 4515 } |
4516 | 4516 |
4517 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4517 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4518 force_disable_overscroll_content_ = force_disable; | 4518 force_disable_overscroll_content_ = force_disable; |
4519 if (view_) | 4519 if (view_) |
4520 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4520 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4521 } | 4521 } |
4522 | 4522 |
4523 } // namespace content | 4523 } // namespace content |
OLD | NEW |