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

Unified Diff: ui/views/widget/widget.cc

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/widget.h ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 84fa83ec405f0798088bfc086b551bf89640e846..e464a0fae8312684ab26025ea11946eaaf6ef298 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -1068,6 +1068,11 @@ void Widget::OnNativeWidgetVisibilityChanged(bool visible) {
root->layer()->SetVisible(visible);
}
+void Widget::OnSoftVisibilityChanged(bool visible) {
+ if (View* root = GetRootView())
+ root->PropagateSoftVisibilityChanged(visible);
+}
+
void Widget::OnNativeWidgetCreated(bool desktop_widget) {
if (is_top_level())
focus_manager_.reset(FocusManagerFactory::Create(this, desktop_widget));
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698