summaryrefslogtreecommitdiff
path: root/chromium/ui/mojo/init/ui_init.h
blob: 9956b17cedfb88999c2d2b5f7f36417fe62459f9 (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
// Copyright 2015 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 UI_MOJO_INIT_UI_INIT_H_
#define UI_MOJO_INIT_UI_INIT_H_

#include <vector>

#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "build/build_config.h"

namespace gfx {
class Display;
class Screen;
}

namespace ui {
class GestureConfiguration;

namespace mojo {

class GestureConfigurationMojo;

// UIInit configures any state needed by apps that make use of ui classes (not
// including aura).
class UIInit {
 public:
  explicit UIInit(const std::vector<gfx::Display>& displays);
  ~UIInit();

 private:
  scoped_ptr<gfx::Screen> screen_;
#if defined(OS_ANDROID)
  scoped_ptr<GestureConfigurationMojo> gesture_configuration_;
#endif

  DISALLOW_COPY_AND_ASSIGN(UIInit);
};

}  // namespace mojo
}  // namespace ui

#endif  // UI_MOJO_INIT_UI_INIT_H_