Chromium Code Reviews| Index: ash/wm/window_util.cc |
| diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc |
| index cd39d9c846664480a4e3cb605f7fb31fc2d51b15..0581a96a4b23f480207e1660c13552c031d1fdef 100644 |
| --- a/ash/wm/window_util.cc |
| +++ b/ash/wm/window_util.cc |
| @@ -9,6 +9,7 @@ |
| #include "ash/ash_constants.h" |
| #include "ash/screen_util.h" |
| #include "ash/shell.h" |
| +#include "ash/shell_window_ids.h" |
| #include "ash/snap_to_pixel_layout_manager.h" |
| #include "ash/wm/window_properties.h" |
| #include "ash/wm/window_state.h" |
| @@ -206,5 +207,14 @@ void InstallSnapLayoutManagerToContainers(aura::Window* parent) { |
| } |
| } |
| +void DockWindow(aura::Window* window) { |
| + aura::Window* docked_container = Shell::GetContainer( |
| + window->GetRootWindow(), |
| + kShellWindowId_DockedContainer); |
| + wm::ReparentChildWithTransientChildren(window, |
| + window->parent(), |
| + docked_container); |
|
oshima
2014/10/01 23:39:24
can we move this code into DefaultState::UpdateBou
dtapuska
2014/10/02 21:05:01
Done. (In other dependent change)
|
| +} |
| + |
| } // namespace wm |
| } // namespace ash |