Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: ash/shell_init_params.h

Issue 1684823004: Refactors keyboard related code so mash can use a keyboard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698