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

Unified Diff: ui/aura/window_tree_host_observer.h

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.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_observer.h
diff --git a/ui/aura/window_tree_host_observer.h b/ui/aura/window_tree_host_observer.h
index d96e9d3b24dc1230deb2ab5920787bcbff2db98f..82badfb669df607c9ce4146e2676ae4d3494eff5 100644
--- a/ui/aura/window_tree_host_observer.h
+++ b/ui/aura/window_tree_host_observer.h
@@ -27,6 +27,10 @@ class AURA_EXPORT WindowTreeHostObserver {
// Called when the native window system sends the host request to close.
virtual void OnHostCloseRequested(const WindowTreeHost* host) {}
+ // Called when the host becomes visible or hidden.
+ virtual void OnHostSetWindowVisibility(const WindowTreeHost* host,
+ bool visible) {}
+
protected:
virtual ~WindowTreeHostObserver() {}
};
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698