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

Unified Diff: content/renderer/render_view.cc

Issue 6979006: Revert 86569 - Enabling page visibility api in the chrome browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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
« no previous file with comments | « content/renderer/render_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view.cc
===================================================================
--- content/renderer/render_view.cc (revision 86573)
+++ content/renderer/render_view.cc (working copy)
@@ -3878,7 +3878,6 @@
if (webview()) {
webview()->settings()->setMinimumTimerInterval(
webkit_glue::kBackgroundTabTimerInterval);
- webview()->setVisibilityState(WebKit::WebPageVisibilityStateHidden, false);
}
#if defined(OS_MACOSX)
@@ -3897,7 +3896,6 @@
if (webview()) {
webview()->settings()->setMinimumTimerInterval(
webkit_glue::kForegroundTabTimerInterval);
- webview()->setVisibilityState(WebKit::WebPageVisibilityStateVisible, false);
}
#if defined(OS_MACOSX)
@@ -4098,13 +4096,6 @@
title));
}
-WebKit::WebPageVisibilityState RenderView::visibilityState() const {
- if (is_hidden())
- return WebKit::WebPageVisibilityStateHidden;
- else
- return WebKit::WebPageVisibilityStateVisible;
-}
-
bool RenderView::IsNonLocalTopLevelNavigation(
const GURL& url, WebKit::WebFrame* frame, WebKit::WebNavigationType type) {
// Must be a top level frame.
« no previous file with comments | « content/renderer/render_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698