Chromium Code Reviews| Index: ash/aura/scoped_root_window_for_new_windows_aura.h |
| diff --git a/ash/scoped_target_root_window.h b/ash/aura/scoped_root_window_for_new_windows_aura.h |
| similarity index 53% |
| rename from ash/scoped_target_root_window.h |
| rename to ash/aura/scoped_root_window_for_new_windows_aura.h |
| index b732e40280766f6edefe2022d9a20de3abab3b29..25de79446b154db910100365e2319b65c2a943c9 100644 |
| --- a/ash/scoped_target_root_window.h |
| +++ b/ash/aura/scoped_root_window_for_new_windows_aura.h |
| @@ -2,10 +2,11 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef ASH_SCOPED_TARGET_ROOT_WINDOW_H_ |
| -#define ASH_SCOPED_TARGET_ROOT_WINDOW_H_ |
| +#ifndef ASH_AURA_SCOPED_ROOT_WINDOW_FOR_NEW_WINDOWS_AURA_H_ |
| +#define ASH_AURA_SCOPED_ROOT_WINDOW_FOR_NEW_WINDOWS_AURA_H_ |
| #include "ash/ash_export.h" |
| +#include "ash/common/scoped_root_window_for_new_windows.h" |
| #include "base/macros.h" |
| namespace aura { |
| @@ -19,15 +20,16 @@ namespace ash { |
| // in the same window where a user interaction happened. |
| // An example usage is to specify the target root window when creating |
| // a new window using launcher's icon. |
| -class ASH_EXPORT ScopedTargetRootWindow { |
| +class ASH_EXPORT ScopedRootWindowForNewWindowsAura |
|
msw
2016/08/01 21:36:15
q: Could we cache the WmWindow and make Shell::Get
|
| + : public ScopedRootWindowForNewWindows { |
| public: |
| - explicit ScopedTargetRootWindow(aura::Window* root_window); |
| - ~ScopedTargetRootWindow(); |
| + explicit ScopedRootWindowForNewWindowsAura(aura::Window* root_window); |
| + ~ScopedRootWindowForNewWindowsAura() override; |
| private: |
| - DISALLOW_COPY_AND_ASSIGN(ScopedTargetRootWindow); |
| + DISALLOW_COPY_AND_ASSIGN(ScopedRootWindowForNewWindowsAura); |
| }; |
| } // namespace ash |
| -#endif // ASH_SCOPED_TARGET_ROOT_WINDOW_H_ |
| +#endif // ASH_AURA_SCOPED_ROOT_WINDOW_FOR_NEW_WINDOWS_AURA_H_ |