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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 } | 918 } |
919 | 919 |
920 RenderWidgetHostView* WebContentsImpl::GetTopLevelRenderWidgetHostView() { | 920 RenderWidgetHostView* WebContentsImpl::GetTopLevelRenderWidgetHostView() { |
921 if (GetOuterWebContents()) | 921 if (GetOuterWebContents()) |
922 return GetOuterWebContents()->GetTopLevelRenderWidgetHostView(); | 922 return GetOuterWebContents()->GetTopLevelRenderWidgetHostView(); |
923 return GetRenderManager()->GetRenderWidgetHostView(); | 923 return GetRenderManager()->GetRenderWidgetHostView(); |
924 } | 924 } |
925 | 925 |
926 RenderWidgetHostView* WebContentsImpl::GetFullscreenRenderWidgetHostView() | 926 RenderWidgetHostView* WebContentsImpl::GetFullscreenRenderWidgetHostView() |
927 const { | 927 const { |
928 if (auto widget_host = GetFullscreenRenderWidgetHost()) | 928 if (auto* widget_host = GetFullscreenRenderWidgetHost()) |
929 return widget_host->GetView(); | 929 return widget_host->GetView(); |
930 return nullptr; | 930 return nullptr; |
931 } | 931 } |
932 | 932 |
933 WebContentsView* WebContentsImpl::GetView() const { | 933 WebContentsView* WebContentsImpl::GetView() const { |
934 return view_.get(); | 934 return view_.get(); |
935 } | 935 } |
936 | 936 |
937 void WebContentsImpl::OnScreenOrientationChange() { | 937 void WebContentsImpl::OnScreenOrientationChange() { |
938 DCHECK(screen_orientation_provider_); | 938 DCHECK(screen_orientation_provider_); |
(...skipping 4436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5375 GetMainFrame()->AddMessageToConsole( | 5375 GetMainFrame()->AddMessageToConsole( |
5376 content::CONSOLE_MESSAGE_LEVEL_WARNING, | 5376 content::CONSOLE_MESSAGE_LEVEL_WARNING, |
5377 base::StringPrintf("This site does not have a valid SSL " | 5377 base::StringPrintf("This site does not have a valid SSL " |
5378 "certificate! Without SSL, your site's and " | 5378 "certificate! Without SSL, your site's and " |
5379 "visitors' data is vulnerable to theft and " | 5379 "visitors' data is vulnerable to theft and " |
5380 "tampering. Get a valid SSL certificate before" | 5380 "tampering. Get a valid SSL certificate before" |
5381 " releasing your website to the public.")); | 5381 " releasing your website to the public.")); |
5382 } | 5382 } |
5383 | 5383 |
5384 } // namespace content | 5384 } // namespace content |
OLD | NEW |