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

Unified Diff: content/browser/tab_contents/tab_contents.h

Issue 7036019: Enabling page visibility api in the chrome browser. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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/tab_contents/tab_contents.h
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h
index 99c25cfa46a1f339e52def4cca5ed9bc7d1fd9a3..089899ac47be4bf283d786c6c57b5a1245330e94 100644
--- a/content/browser/tab_contents/tab_contents.h
+++ b/content/browser/tab_contents/tab_contents.h
@@ -774,6 +774,7 @@ class TabContents : public PageNavigator,
virtual void WorkerCrashed();
virtual void RequestDesktopNotificationPermission(const GURL& source_origin,
int callback_context);
+ virtual bool IsHidden() const OVERRIDE;
// RenderViewHostManager::Delegate -------------------------------------------
@@ -970,6 +971,11 @@ class TabContents : public PageNavigator,
// (full-page plugins for now only) permissions.
int content_restrictions_;
+ // We need to know if the tab contents is hidden initially, before the
+ // delegate is set. This variable os only used in the call to IsHidden() if
+ // the delegate is NULL.
+ bool is_initially_hidden_;
+
DISALLOW_COPY_AND_ASSIGN(TabContents);
};

Powered by Google App Engine
This is Rietveld 408576698