summaryrefslogtreecommitdiffstats
path: root/ash/shell_init_params.h
blob: 68999e4d1f25b62cbfdd8dd91b634557eb0ca1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_SHELL_INIT_PARAMS_H_
#define ASH_SHELL_INIT_PARAMS_H_

#include "build/build_config.h"

#if defined(OS_WIN)
#include <windows.h>
#endif

#include "ash/ash_export.h"
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"

namespace base {
class SequencedWorkerPool;
}

namespace ui {
class ContextFactory;
}

namespace ash {

class KeyboardUI;
class ShellDelegate;

struct ASH_EXPORT ShellInitParams {
  ShellInitParams();
  ~ShellInitParams();

  ShellDelegate* delegate;

  ui::ContextFactory* context_factory;
  base::SequencedWorkerPool* blocking_pool;

  // True if running inside mus.
  bool in_mus = false;

  base::Callback<scoped_ptr<KeyboardUI>()> keyboard_factory;

#if defined(OS_WIN)
  HWND remote_hwnd;
#endif
};

}  // namespace ash

#endif  // ASH_SHELL_INIT_PARAMS_H_