Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 } 923 }
924 924
925 RenderWidgetHostView* WebContentsImpl::GetTopLevelRenderWidgetHostView() { 925 RenderWidgetHostView* WebContentsImpl::GetTopLevelRenderWidgetHostView() {
926 if (GetOuterWebContents()) 926 if (GetOuterWebContents())
927 return GetOuterWebContents()->GetTopLevelRenderWidgetHostView(); 927 return GetOuterWebContents()->GetTopLevelRenderWidgetHostView();
928 return GetRenderManager()->GetRenderWidgetHostView(); 928 return GetRenderManager()->GetRenderWidgetHostView();
929 } 929 }
930 930
931 RenderWidgetHostView* WebContentsImpl::GetFullscreenRenderWidgetHostView() 931 RenderWidgetHostView* WebContentsImpl::GetFullscreenRenderWidgetHostView()
932 const { 932 const {
933 if (auto widget_host = GetFullscreenRenderWidgetHost()) 933 if (auto* widget_host = GetFullscreenRenderWidgetHost())
934 return widget_host->GetView(); 934 return widget_host->GetView();
935 return nullptr; 935 return nullptr;
936 } 936 }
937 937
938 WebContentsView* WebContentsImpl::GetView() const { 938 WebContentsView* WebContentsImpl::GetView() const {
939 return view_.get(); 939 return view_.get();
940 } 940 }
941 941
942 void WebContentsImpl::OnScreenOrientationChange() { 942 void WebContentsImpl::OnScreenOrientationChange() {
943 DCHECK(screen_orientation_provider_); 943 DCHECK(screen_orientation_provider_);
(...skipping 4485 matching lines...) Expand 10 before | Expand all | Expand 10 after
5429 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5429 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5430 if (!render_view_host) 5430 if (!render_view_host)
5431 continue; 5431 continue;
5432 render_view_host_set.insert(render_view_host); 5432 render_view_host_set.insert(render_view_host);
5433 } 5433 }
5434 for (RenderViewHost* render_view_host : render_view_host_set) 5434 for (RenderViewHost* render_view_host : render_view_host_set)
5435 render_view_host->OnWebkitPreferencesChanged(); 5435 render_view_host->OnWebkitPreferencesChanged();
5436 } 5436 }
5437 5437
5438 } // namespace content 5438 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698