Chromium Code Reviews| 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 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1866 const std::vector<AXEventNotificationDetails>& details) { | 1866 const std::vector<AXEventNotificationDetails>& details) { |
| 1867 FOR_EACH_OBSERVER( | 1867 FOR_EACH_OBSERVER( |
| 1868 WebContentsObserver, observers_, AccessibilityEventReceived(details)); | 1868 WebContentsObserver, observers_, AccessibilityEventReceived(details)); |
| 1869 } | 1869 } |
| 1870 | 1870 |
| 1871 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID( | 1871 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID( |
| 1872 int browser_plugin_instance_id) { | 1872 int browser_plugin_instance_id) { |
| 1873 BrowserPluginGuestManager* guest_manager = | 1873 BrowserPluginGuestManager* guest_manager = |
| 1874 GetBrowserContext()->GetGuestManager(); | 1874 GetBrowserContext()->GetGuestManager(); |
| 1875 WebContents* guest = guest_manager->GetGuestByInstanceID( | 1875 WebContents* guest = guest_manager->GetGuestByInstanceID( |
| 1876 this, browser_plugin_instance_id); | 1876 GetRenderProcessHost()->GetID(), browser_plugin_instance_id); |
|
Charlie Reis
2015/02/12 21:38:05
Same issue.
Fady Samuel
2015/02/13 01:22:13
Done.
| |
| 1877 if (!guest) | 1877 if (!guest) |
| 1878 return NULL; | 1878 return NULL; |
| 1879 return guest->GetMainFrame(); | 1879 return guest->GetMainFrame(); |
| 1880 } | 1880 } |
| 1881 | 1881 |
| 1882 GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() { | 1882 GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() { |
| 1883 return geolocation_service_context_.get(); | 1883 return geolocation_service_context_.get(); |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 void WebContentsImpl::OnShowValidationMessage( | 1886 void WebContentsImpl::OnShowValidationMessage( |
| (...skipping 2624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4511 node->render_manager()->ResumeResponseDeferredAtStart(); | 4511 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4512 } | 4512 } |
| 4513 | 4513 |
| 4514 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4514 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4515 force_disable_overscroll_content_ = force_disable; | 4515 force_disable_overscroll_content_ = force_disable; |
| 4516 if (view_) | 4516 if (view_) |
| 4517 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4517 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4518 } | 4518 } |
| 4519 | 4519 |
| 4520 } // namespace content | 4520 } // namespace content |
| OLD | NEW |