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

Unified Diff: mash/wm/root_window_controller.cc

Issue 2024993002: Makes RootWindowController window creation in terms of common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk 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
« no previous file with comments | « mash/wm/non_client_frame_controller.cc ('k') | ui/wm/core/visibility_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/root_window_controller.cc
diff --git a/mash/wm/root_window_controller.cc b/mash/wm/root_window_controller.cc
index 3d0b88713cfd582ef2a7d9992a0628e6e5e4b634..7f084ff083d2735a7b83aeb30ce3b078b07f58e0 100644
--- a/mash/wm/root_window_controller.cc
+++ b/mash/wm/root_window_controller.cc
@@ -320,25 +320,39 @@ void RootWindowController::CreateContainers() {
std::unique_ptr<WorkspaceLayoutManagerDelegateImpl>
workspace_layout_manager_delegate(new WorkspaceLayoutManagerDelegateImpl(
wm_root_window_controller_.get()));
- WmWindowMus::Get(user_private_windows)
- ->SetLayoutManager(base::WrapUnique(new ash::WorkspaceLayoutManager(
- WmWindowMus::Get(user_private_windows),
+ WmWindowMus* user_private_windows_wm = WmWindowMus::Get(user_private_windows);
+ user_private_windows_wm->SetSnapsChildrenToPhysicalPixelBoundary();
+ user_private_windows_wm->SetChildrenUseExtendedHitRegion();
+ user_private_windows_wm->SetLayoutManager(
+ base::WrapUnique(new ash::WorkspaceLayoutManager(
+ user_private_windows_wm,
std::move(workspace_layout_manager_delegate))));
mus::Window* user_private_docked_windows =
GetWindowForContainer(mojom::Container::USER_PRIVATE_DOCKED_WINDOWS);
WmWindowMus* user_private_docked_windows_wm =
WmWindowMus::Get(user_private_docked_windows);
+ user_private_docked_windows_wm->SetSnapsChildrenToPhysicalPixelBoundary();
layout_managers_.erase(user_private_docked_windows);
+ user_private_docked_windows_wm->SetChildrenUseExtendedHitRegion();
user_private_docked_windows_wm->SetLayoutManager(base::WrapUnique(
new ash::DockedWindowLayoutManager(user_private_docked_windows_wm)));
mus::Window* user_private_panels =
GetWindowForContainer(mojom::Container::USER_PRIVATE_PANELS);
WmWindowMus* user_private_panels_wm = WmWindowMus::Get(user_private_panels);
+ user_private_panels_wm->SetSnapsChildrenToPhysicalPixelBoundary();
layout_managers_.erase(user_private_panels);
+ user_private_panels_wm->SetChildrenUseExtendedHitRegion();
user_private_panels_wm->SetLayoutManager(
base::WrapUnique(new ash::PanelLayoutManager(user_private_panels_wm)));
+
+ mus::Window* user_private_always_on_top = GetWindowForContainer(
+ mojom::Container::USER_PRIVATE_ALWAYS_ON_TOP_WINDOWS);
+ WmWindowMus* user_private_always_on_top_wm =
+ WmWindowMus::Get(user_private_always_on_top);
+ user_private_always_on_top_wm->SetChildrenUseExtendedHitRegion();
+ user_private_always_on_top_wm->SetSnapsChildrenToPhysicalPixelBoundary();
}
} // namespace wm
« no previous file with comments | « mash/wm/non_client_frame_controller.cc ('k') | ui/wm/core/visibility_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698