Roll src/third_party/skia d32087a:1052f51
[chromium-blink-merge.git] / mandoline / ui / aura / aura_init.h
blob505adb40579b82c9689fdfc39b910dd33b9fa4a3
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 MANDOLINE_UI_AURA_AURA_INIT_H_
6 #define MANDOLINE_UI_AURA_AURA_INIT_H_
8 #include "skia/ext/refptr.h"
9 #include "ui/mojo/init/ui_init.h"
11 namespace font_service {
12 class FontLoader;
15 namespace mojo {
16 class Shell;
19 namespace mus {
20 class View;
23 namespace mandoline {
25 // Sets up necessary state for aura when run with the viewmanager.
26 class AuraInit {
27 public:
28 AuraInit(mus::View* root, mojo::Shell* shell);
29 ~AuraInit();
31 private:
32 void InitializeResources(mojo::Shell* shell);
34 ui::mojo::UIInit ui_init_;
36 #if defined(OS_LINUX) && !defined(OS_ANDROID)
37 skia::RefPtr<font_service::FontLoader> font_loader_;
38 #endif
40 DISALLOW_COPY_AND_ASSIGN(AuraInit);
43 } // namespace mandoline
45 #endif // MANDOLINE_UI_AURA_AURA_INIT_H_