| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_SHELL_INIT_PARAMS_H_ | 5 #ifndef ASH_SHELL_INIT_PARAMS_H_ |
| 6 #define ASH_SHELL_INIT_PARAMS_H_ | 6 #define ASH_SHELL_INIT_PARAMS_H_ |
| 7 | 7 |
| 8 #include <memory> | |
| 9 | |
| 10 #include "build/build_config.h" | |
| 11 | |
| 12 #if defined(OS_WIN) | |
| 13 #include <windows.h> | |
| 14 #endif | |
| 15 | |
| 16 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 17 #include "base/callback.h" | |
| 18 | 9 |
| 19 namespace base { | 10 namespace base { |
| 20 class SequencedWorkerPool; | 11 class SequencedWorkerPool; |
| 21 } | 12 } |
| 22 | 13 |
| 23 namespace ui { | 14 namespace ui { |
| 24 class ContextFactory; | 15 class ContextFactory; |
| 25 } | 16 } |
| 26 | 17 |
| 27 namespace ash { | 18 namespace ash { |
| 28 | 19 |
| 29 class KeyboardUI; | |
| 30 class ShellDelegate; | 20 class ShellDelegate; |
| 31 | 21 |
| 32 struct ASH_EXPORT ShellInitParams { | 22 struct ASH_EXPORT ShellInitParams { |
| 33 ShellInitParams(); | 23 ShellDelegate* delegate = nullptr; |
| 34 ~ShellInitParams(); | 24 ui::ContextFactory* context_factory = nullptr; |
| 35 | 25 base::SequencedWorkerPool* blocking_pool = nullptr; |
| 36 ShellDelegate* delegate; | |
| 37 | |
| 38 ui::ContextFactory* context_factory; | |
| 39 base::SequencedWorkerPool* blocking_pool; | |
| 40 | |
| 41 // True if running inside mus. | |
| 42 bool in_mus = false; | |
| 43 | |
| 44 base::Callback<std::unique_ptr<KeyboardUI>()> keyboard_factory; | |
| 45 | |
| 46 #if defined(OS_WIN) | |
| 47 HWND remote_hwnd; | |
| 48 #endif | |
| 49 }; | 26 }; |
| 50 | 27 |
| 51 } // namespace ash | 28 } // namespace ash |
| 52 | 29 |
| 53 #endif // ASH_SHELL_INIT_PARAMS_H_ | 30 #endif // ASH_SHELL_INIT_PARAMS_H_ |
| OLD | NEW |