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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 1631063002: Add isPageVisible to Page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Clean up Created 4 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: third_party/WebKit/Source/core/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index bcad85fab860c81da591168bd70bb56249623d8d..2db6b62f9bdd0e630f276c3ffa6d21a11ece1709 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -381,6 +381,11 @@ PageVisibilityState Page::visibilityState() const
return m_visibilityState;
}
+bool Page::isPageVisible() const
haraken 2016/01/25 22:54:31 const won't be needed in the cpp side.
ortuno 2016/01/25 23:36:34 not sure what you mean here? All functions that ha
haraken 2016/01/25 23:40:17 ah, sorry, you're right!
+{
+ return visibilityState() == PageVisibilityStateVisible;
+}
+
bool Page::isCursorVisible() const
{
return m_isCursorVisible && settings().deviceSupportsMouse();

Powered by Google App Engine
This is Rietveld 408576698