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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 866443003: Push API: Don't require notification if tab is visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ycm_outdir
Patch Set: Expose WebContents::IsHiddenIgnoringCapturing instead of PushMessagingService::IsWebContentsUserVis… Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 0f56ad43aae40943a046046fdf34f6b9341d1974..6b915033cdfb1e9ffc4d9c59924e0069cdd35f08 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -180,8 +180,6 @@ class CONTENT_EXPORT WebContentsImpl
return screen_orientation_dispatcher_host_.get();
}
- bool should_normally_be_visible() { return should_normally_be_visible_; }
-
// Indicate if the window has been occluded, and pass this to the views, only
// if there is no active capture going on (otherwise it is dropped on the
// floor).
@@ -262,6 +260,7 @@ class CONTENT_EXPORT WebContentsImpl
bool IsBeingDestroyed() const override;
void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
base::TimeTicks GetLastActiveTime() const override;
+ bool IsHiddenIgnoringCapturing() const override;
void WasShown() override;
void WasHidden() override;
bool NeedToFireBeforeUnload() override;

Powered by Google App Engine
This is Rietveld 408576698