Chromium Code Reviews
DescriptionHide/show widget on Windows screen lock/unlock to mimic behavior on other platforms (Mac,Android).
Initial intention behind patch was to fix missing Page Visibility API
visibilitychange on Windows screen lock/unlock in example:
e.g. http://daniemon.com/tech/webapps/page-visibility/
Debugging showed that the problem is in NativeViewHostWrapper's HideWidget ->
NativeView::Hide() not getting called.
One of the related things was also missing call to
Document::didChangeVisibilityState.
Some OSs (e.g. Windows and Linux) don't mark windows as hidden 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 HWND window state is kept as is (on
Linux and Windows) and that e.g. widget is hidden and power saving PageVisibility API is still
properly triggered.
The (first) patch here targets Windows and screen lock - Linux support and
occlusion left for follow up patches.
BUG=532128
Patch Set 1 #Patch Set 2 : Nits. #
Messages
Total messages: 28 (6 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||