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

Unified Diff: ash/desktop_background/desktop_background_view.cc

Issue 2278903003: [ash-md] Keeps overview mode shield above DesktopBackgroundView (Closed)
Patch Set: 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
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..d2a85c2e02b5b3fc7a85943669ab0333427f8f2c 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 overivew mode shield.
James Cook 2016/08/25 18:32:12 nit: overview
varkha 2016/08/25 19:56:42 Done.
+ window->GetParent()->StackChildAtBottom(window);
display::Display display = window->GetDisplayNearestWindow();
DisplayInfo info = WmShell::Get()->GetDisplayInfo(display.id());
float ui_scale = info.GetEffectiveUIScale();
« ash/common/wm/overview/window_grid.cc ('K') | « ash/common/wm/overview/window_grid.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698