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

Unified Diff: ui/aura/window_tree_host.cc

Issue 944763002: Make Page Visibility API work when the browser window is visible or not Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use of SetWindowVisibility message Created 5 years, 8 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 | « ui/aura/window_tree_host.h ('k') | ui/aura/window_tree_host_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index e60208be8c19b09974210da56efa2e38134f23d5..4bcb81852e0d483d64a5f1dcda1dacae3ddd4396 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -259,6 +259,10 @@ void WindowTreeHost::OnHostLostWindowCapture() {
capture_window->ReleaseCapture();
}
+void WindowTreeHost::OnHostSetWindowVisibility(bool visible) {
+ FOR_EACH_OBSERVER(WindowTreeHostObserver, observers_,
+ OnHostSetWindowVisibility(this, visible));
+}
////////////////////////////////////////////////////////////////////////////////
// WindowTreeHost, private:
« no previous file with comments | « ui/aura/window_tree_host.h ('k') | ui/aura/window_tree_host_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698