| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 } | 1977 } |
| 1978 | 1978 |
| 1979 bool WebContentsImpl::HasMouseLock(RenderWidgetHostImpl* render_widget_host) { | 1979 bool WebContentsImpl::HasMouseLock(RenderWidgetHostImpl* render_widget_host) { |
| 1980 // To verify if the mouse is locked, the mouse_lock_widget_ needs to be | 1980 // To verify if the mouse is locked, the mouse_lock_widget_ needs to be |
| 1981 // assigned to the widget that requested the mouse lock, and the top-level | 1981 // assigned to the widget that requested the mouse lock, and the top-level |
| 1982 // platform RenderWidgetHostView needs to hold the mouse lock from the OS. | 1982 // platform RenderWidgetHostView needs to hold the mouse lock from the OS. |
| 1983 return mouse_lock_widget_ == render_widget_host && | 1983 return mouse_lock_widget_ == render_widget_host && |
| 1984 GetTopLevelRenderWidgetHostView()->IsMouseLocked(); | 1984 GetTopLevelRenderWidgetHostView()->IsMouseLocked(); |
| 1985 } | 1985 } |
| 1986 | 1986 |
| 1987 void WebContentsImpl::ForwardCompositorProto( | |
| 1988 RenderWidgetHostImpl* render_widget_host, | |
| 1989 const std::vector<uint8_t>& proto) { | |
| 1990 if (delegate_) | |
| 1991 delegate_->ForwardCompositorProto(render_widget_host, proto); | |
| 1992 } | |
| 1993 | |
| 1994 void WebContentsImpl::OnRenderFrameProxyVisibilityChanged(bool visible) { | 1987 void WebContentsImpl::OnRenderFrameProxyVisibilityChanged(bool visible) { |
| 1995 if (visible && !GetOuterWebContents()->IsHidden()) | 1988 if (visible && !GetOuterWebContents()->IsHidden()) |
| 1996 WasShown(); | 1989 WasShown(); |
| 1997 else if (!visible) | 1990 else if (!visible) |
| 1998 WasHidden(); | 1991 WasHidden(); |
| 1999 } | 1992 } |
| 2000 | 1993 |
| 2001 void WebContentsImpl::CreateNewWindow( | 1994 void WebContentsImpl::CreateNewWindow( |
| 2002 SiteInstance* source_site_instance, | 1995 SiteInstance* source_site_instance, |
| 2003 int32_t render_view_route_id, | 1996 int32_t render_view_route_id, |
| (...skipping 3416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5420 GetMainFrame()->AddMessageToConsole( | 5413 GetMainFrame()->AddMessageToConsole( |
| 5421 content::CONSOLE_MESSAGE_LEVEL_WARNING, | 5414 content::CONSOLE_MESSAGE_LEVEL_WARNING, |
| 5422 base::StringPrintf("This site does not have a valid SSL " | 5415 base::StringPrintf("This site does not have a valid SSL " |
| 5423 "certificate! Without SSL, your site's and " | 5416 "certificate! Without SSL, your site's and " |
| 5424 "visitors' data is vulnerable to theft and " | 5417 "visitors' data is vulnerable to theft and " |
| 5425 "tampering. Get a valid SSL certificate before" | 5418 "tampering. Get a valid SSL certificate before" |
| 5426 " releasing your website to the public.")); | 5419 " releasing your website to the public.")); |
| 5427 } | 5420 } |
| 5428 | 5421 |
| 5429 } // namespace content | 5422 } // namespace content |
| OLD | NEW |