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

Unified Diff: mash/wm/window_manager.cc

Issue 2010473003: Wires up shelf to panel and dock layoutmanagers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 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
Index: mash/wm/window_manager.cc
diff --git a/mash/wm/window_manager.cc b/mash/wm/window_manager.cc
index 614aaf6bc40e5caadca455ed81a893b31c68c045..929c91cf8d5c049888fb7d371152955d28f2143d 100644
--- a/mash/wm/window_manager.cc
+++ b/mash/wm/window_manager.cc
@@ -84,8 +84,10 @@ mus::Window* WindowManager::NewTopLevelWindow(
mus::Window* root = root_controller_->root();
DCHECK(root);
+ // TODO(sky): panels need a different frame, http:://crbug.com/614362.
const bool provide_non_client_frame =
- GetWindowType(*properties) == mus::mojom::WindowType::WINDOW;
+ GetWindowType(*properties) == mus::mojom::WindowType::WINDOW ||
+ GetWindowType(*properties) == mus::mojom::WindowType::PANEL;
if (provide_non_client_frame)
(*properties)[mus::mojom::kWaitForUnderlay_Property].clear();
« mash/wm/shelf_layout_manager_delegate.h ('K') | « mash/wm/shelf_layout_manager_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698