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

Unified Diff: ash/mus/top_level_window_factory.cc

Issue 2919523004: Surface synchronization: Don't gutter translucent windows (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/top_level_window_factory.cc
diff --git a/ash/mus/top_level_window_factory.cc b/ash/mus/top_level_window_factory.cc
index 639eb600d6a8606b0aee279ebd7e2facdf68583f..a4b9673ecb1c66c70f178356aabe1577f8224624 100644
--- a/ash/mus/top_level_window_factory.cc
+++ b/ash/mus/top_level_window_factory.cc
@@ -226,6 +226,16 @@ aura::Window* CreateAndParentTopLevelWindow(
// No need to persist this value.
properties->erase(focusable_iter);
}
+
+ auto translucent_iter =
+ properties->find(ui::mojom::WindowManager::kTranslucent_InitProperty);
+ if (translucent_iter != properties->end()) {
+ bool translucent = mojo::ConvertTo<bool>(translucent_iter->second);
+ window->SetTransparent(translucent);
+ // No need to persist this value.
+ properties->erase(translucent_iter);
+ }
+
return window;
}
« no previous file with comments | « no previous file | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698