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

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

Issue 2931023002: [TooManyTabs] Add TabNavigationThrottle (Closed)
Patch Set: review fix Created 3 years, 6 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/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index ea487a2eb0370fb7f3177d393d28dc2cf60b1151..9c747b5790076e54715983f4ff50625936411313 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -442,6 +442,9 @@ class WebContents : public PageNavigator,
virtual void WasShown() = 0;
virtual void WasHidden() = 0;
+ // Whether the WebContents is visible.
+ virtual bool IsVisible() const = 0;
+
// Returns true if the before unload and unload listeners need to be
// fired. The value of this changes over time. For example, if true and the
// before unload listener is executed and allows the user to exit, then this

Powered by Google App Engine
This is Rietveld 408576698