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 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 } | 1689 } |
1690 | 1690 |
1691 void WebContentsImpl::LostMouseLock(RenderWidgetHostImpl* render_widget_host) { | 1691 void WebContentsImpl::LostMouseLock(RenderWidgetHostImpl* render_widget_host) { |
1692 if (!RenderViewHostImpl::From(render_widget_host)) | 1692 if (!RenderViewHostImpl::From(render_widget_host)) |
1693 return; | 1693 return; |
1694 | 1694 |
1695 if (delegate_) | 1695 if (delegate_) |
1696 delegate_->LostMouseLock(); | 1696 delegate_->LostMouseLock(); |
1697 } | 1697 } |
1698 | 1698 |
| 1699 void WebContentsImpl::ForwardCompositorProto( |
| 1700 RenderWidgetHostImpl* render_widget_host, |
| 1701 const std::vector<uint8_t>& proto) { |
| 1702 if (render_widget_host != GetRenderViewHost()->GetWidget()) |
| 1703 return; |
| 1704 |
| 1705 if (delegate_) |
| 1706 delegate_->ForwardCompositorProto(proto); |
| 1707 } |
| 1708 |
1699 void WebContentsImpl::CreateNewWindow( | 1709 void WebContentsImpl::CreateNewWindow( |
1700 SiteInstance* source_site_instance, | 1710 SiteInstance* source_site_instance, |
1701 int32_t route_id, | 1711 int32_t route_id, |
1702 int32_t main_frame_route_id, | 1712 int32_t main_frame_route_id, |
1703 int32_t main_frame_widget_route_id, | 1713 int32_t main_frame_widget_route_id, |
1704 const ViewHostMsg_CreateWindow_Params& params, | 1714 const ViewHostMsg_CreateWindow_Params& params, |
1705 SessionStorageNamespace* session_storage_namespace) { | 1715 SessionStorageNamespace* session_storage_namespace) { |
1706 // We usually create the new window in the same BrowsingInstance (group of | 1716 // We usually create the new window in the same BrowsingInstance (group of |
1707 // script-related windows), by passing in the current SiteInstance. However, | 1717 // script-related windows), by passing in the current SiteInstance. However, |
1708 // if the opener is being suppressed (in a non-guest), we create a new | 1718 // if the opener is being suppressed (in a non-guest), we create a new |
(...skipping 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4764 return NULL; | 4774 return NULL; |
4765 } | 4775 } |
4766 | 4776 |
4767 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4777 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4768 force_disable_overscroll_content_ = force_disable; | 4778 force_disable_overscroll_content_ = force_disable; |
4769 if (view_) | 4779 if (view_) |
4770 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4780 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4771 } | 4781 } |
4772 | 4782 |
4773 } // namespace content | 4783 } // namespace content |
OLD | NEW |