Roll WebRTC 9745:9761, Libjingle 9742:9761
[chromium-blink-merge.git] / ui / mojo / init / ui_init.h
blobeeaebc66fa160ab099215c380e858138bf9e1683
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_MOJO_INIT_UI_INIT_H_
6 #define UI_MOJO_INIT_UI_INIT_H_
8 #include "base/basictypes.h"
9 #include "base/callback_forward.h"
10 #include "base/memory/scoped_ptr.h"
12 namespace gfx {
13 class Screen;
14 class Size;
17 namespace ui {
18 class GestureConfiguration;
20 namespace mojo {
22 class GestureConfigurationMojo;
24 // UIInit configures any state needed by apps that make use of ui classes (not
25 // including aura).
26 class UIInit {
27 public:
28 UIInit(const gfx::Size& screen_size_in_pixels, float device_pixel_ratio);
29 ~UIInit();
31 private:
32 scoped_ptr<gfx::Screen> screen_;
33 #if defined(OS_ANDROID)
34 scoped_ptr<GestureConfigurationMojo> gesture_configuration_;
35 #endif
37 DISALLOW_COPY_AND_ASSIGN(UIInit);
40 } // namespace mojo
41 } // namespace ui
43 #endif // UI_MOJO_INIT_UI_INIT_H_