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