diff options
Diffstat (limited to 'ui/mojo/init/ui_init.h')
-rw-r--r-- | ui/mojo/init/ui_init.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ui/mojo/init/ui_init.h b/ui/mojo/init/ui_init.h new file mode 100644 index 0000000..eeaebc6 --- /dev/null +++ b/ui/mojo/init/ui_init.h @@ -0,0 +1,43 @@ +// 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 "base/basictypes.h" +#include "base/callback_forward.h" +#include "base/memory/scoped_ptr.h" + +namespace gfx { +class Screen; +class Size; +} + +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: + UIInit(const gfx::Size& screen_size_in_pixels, float device_pixel_ratio); + ~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_ |