| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_ASH_ASH_INIT_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_ASH_INIT_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_ASH_INIT_H_ | 6 #define CHROME_BROWSER_UI_ASH_ASH_INIT_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include <memory> |
| 9 | 9 |
| 10 namespace chrome { | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 // Creates the Ash Shell and opens the Ash window. |remote_window| is only used | 12 namespace ash { |
| 13 // on windows. It provides the HWND to the remote window. | 13 namespace mus { |
| 14 void OpenAsh(gfx::AcceleratedWidget remote_window); | 14 class WindowManager; |
| 15 } |
| 16 } |
| 15 | 17 |
| 16 // Closes the Ash window and destroys the Ash Shell. | 18 // Creates and owns ash. |
| 17 void CloseAsh(); | 19 class AshInit { |
| 20 public: |
| 21 AshInit(); |
| 22 ~AshInit(); |
| 18 | 23 |
| 19 } // namespace chrome | 24 private: |
| 25 // Only created when running in ash::Config::MUS. |
| 26 std::unique_ptr<ash::mus::WindowManager> window_manager_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(AshInit); |
| 29 }; |
| 20 | 30 |
| 21 #endif // CHROME_BROWSER_UI_ASH_ASH_INIT_H_ | 31 #endif // CHROME_BROWSER_UI_ASH_ASH_INIT_H_ |
| OLD | NEW |