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

Unified Diff: ui/views/widget/native_widget_delegate.h

Issue 1746013002: Hide/show widget on Windows screen lock/unlock Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 4 years, 10 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/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_delegate.h
diff --git a/ui/views/widget/native_widget_delegate.h b/ui/views/widget/native_widget_delegate.h
index 224972c2d1204487b1a35c4c5fae36850ac05137..995313909fcc2a94e0eb7950f05432e481ac0b4a 100644
--- a/ui/views/widget/native_widget_delegate.h
+++ b/ui/views/widget/native_widget_delegate.h
@@ -67,6 +67,14 @@ class VIEWS_EXPORT NativeWidgetDelegate {
// Called when the window is shown/hidden.
virtual void OnNativeWidgetVisibilityChanged(bool visible) = 0;
+ // Some OSs (e.g. Windows and Linux) don't mark windows as hiden on screen
+ // lock or when other opaque windows fully cover them.
+ // Note that e.g. OSX and Android do this while Windows and Linux don't.
+ // OnSoftVisibilityChanged enables that OS window state is kept as is (on
+ // Linux and Windows) and that e.g. power saving PageVisibility API is still
+ // properly triggered.
+ virtual void OnSoftVisibilityChanged(bool visible) = 0;
+
// Called when the native widget is created.
// The |desktop_widget| bool is true for widgets created in the desktop and
// false for widgets created in the shell.
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698