| Index: ash/wm/common/window_parenting_utils.h
|
| diff --git a/ash/wm/common/window_parenting_utils.h b/ash/wm/common/window_parenting_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0e0ce3c4815af1c0c83ceb901649ac19d5ebc1a2
|
| --- /dev/null
|
| +++ b/ash/wm/common/window_parenting_utils.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef ASH_WM_COMMON_WINDOW_PARENTING_UTILS_H_
|
| +#define ASH_WM_COMMON_WINDOW_PARENTING_UTILS_H_
|
| +
|
| +#include "ash/ash_export.h"
|
| +
|
| +namespace ash {
|
| +namespace wm {
|
| +
|
| +class WmWindow;
|
| +
|
| +// Changes the parent of a |child| and all its transient children that are
|
| +// themselves children of |old_parent| to |new_parent|.
|
| +void ReparentChildWithTransientChildren(WmWindow* child,
|
| + WmWindow* old_parent,
|
| + WmWindow* new_parent);
|
| +
|
| +// Changes the parent of all transient children of a |child| to |new_parent|.
|
| +// Does not change parent of the transient children that are not themselves
|
| +// children of |old_parent|.
|
| +void ReparentTransientChildrenOfChild(WmWindow* child,
|
| + WmWindow* old_parent,
|
| + WmWindow* new_parent);
|
| +
|
| +} // namespace wm
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_WM_COMMON_WINDOW_PARENTING_UTILS_H_
|
|
|