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

Unified Diff: ash/desktop_background/desktop_background_view.cc

Issue 2278903003: [ash-md] Keeps overview mode shield above DesktopBackgroundView (Closed)
Patch Set: [ash-md] Keeps overview mode shield above DesktopBackgroundView (nits) Created 4 years, 4 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 | « ash/common/wm/overview/window_selector_item.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/desktop_background/desktop_background_view.cc
diff --git a/ash/desktop_background/desktop_background_view.cc b/ash/desktop_background/desktop_background_view.cc
index be85e5e6c455a2eee9371ae8a9dff93a4aca2cc5..adbd066f688590ef34d23bbb7094df72890a2867 100644
--- a/ash/desktop_background/desktop_background_view.cc
+++ b/ash/desktop_background/desktop_background_view.cc
@@ -41,6 +41,9 @@ class LayerControlView : public views::View {
// Overrides views::View.
void Layout() override {
WmWindow* window = WmLookup::Get()->GetWindowForWidget(GetWidget());
+ // Keep |this| at the bottom since there may be other windows on top of the
+ // background view such as an overview mode shield.
+ window->GetParent()->StackChildAtBottom(window);
display::Display display = window->GetDisplayNearestWindow();
DisplayInfo info = WmShell::Get()->GetDisplayInfo(display.id());
float ui_scale = info.GetEffectiveUIScale();
« no previous file with comments | « ash/common/wm/overview/window_selector_item.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698