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

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

Issue 1743143002: Remove WebContents::Was{Hidden,Shown}() from the content public interface Base URL: https://chromium.googlesource.com/chromium/src.git@20160225-WebContents-DicardCursorRects
Patch Set: Fix androido Created 4 years, 9 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 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 } 1240 }
1241 } 1241 }
1242 1242
1243 void WebContentsImpl::WasUnOccluded() { 1243 void WebContentsImpl::WasUnOccluded() {
1244 for (RenderWidgetHostView* view : GetRenderWidgetHostViewsInTree()) { 1244 for (RenderWidgetHostView* view : GetRenderWidgetHostViewsInTree()) {
1245 if (view) 1245 if (view)
1246 view->WasUnOccluded(); 1246 view->WasUnOccluded();
1247 } 1247 }
1248 } 1248 }
1249 1249
1250 void WebContentsImpl::MarkBackgrounded() {
1251 WasHidden();
1252 }
1253
1250 bool WebContentsImpl::NeedToFireBeforeUnload() { 1254 bool WebContentsImpl::NeedToFireBeforeUnload() {
1251 // TODO(creis): Should we fire even for interstitial pages? 1255 // TODO(creis): Should we fire even for interstitial pages?
1252 return WillNotifyDisconnection() && !ShowingInterstitialPage() && 1256 return WillNotifyDisconnection() && !ShowingInterstitialPage() &&
1253 !GetRenderViewHost()->SuddenTerminationAllowed(); 1257 !GetRenderViewHost()->SuddenTerminationAllowed();
1254 } 1258 }
1255 1259
1256 void WebContentsImpl::DispatchBeforeUnload(bool for_cross_site_transition) { 1260 void WebContentsImpl::DispatchBeforeUnload(bool for_cross_site_transition) {
1257 GetMainFrame()->DispatchBeforeUnload(for_cross_site_transition); 1261 GetMainFrame()->DispatchBeforeUnload(for_cross_site_transition);
1258 } 1262 }
1259 1263
(...skipping 3561 matching lines...) Expand 10 before | Expand all | Expand 10 after
4821 else 4825 else
4822 WasHidden(); 4826 WasHidden();
4823 } 4827 }
4824 4828
4825 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 4829 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
4826 JavaScriptDialogManager* dialog_manager) { 4830 JavaScriptDialogManager* dialog_manager) {
4827 dialog_manager_ = dialog_manager; 4831 dialog_manager_ = dialog_manager;
4828 } 4832 }
4829 4833
4830 } // namespace content 4834 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698