OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MANDOLINE_UI_AURA_AURA_INIT_H_ | 5 #ifndef MANDOLINE_UI_AURA_AURA_INIT_H_ |
6 #define MANDOLINE_UI_AURA_AURA_INIT_H_ | 6 #define MANDOLINE_UI_AURA_AURA_INIT_H_ |
7 | 7 |
8 #include "skia/ext/refptr.h" | 8 #include "skia/ext/refptr.h" |
9 #include "ui/mojo/init/ui_init.h" | 9 #include "ui/mojo/init/ui_init.h" |
10 | 10 |
11 namespace font_service { | 11 namespace font_service { |
12 class FontLoader; | 12 class FontLoader; |
13 } | 13 } |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 class Shell; | 16 class Shell; |
| 17 } |
| 18 |
| 19 namespace mus { |
17 class View; | 20 class View; |
18 } | 21 } |
19 | 22 |
20 namespace mandoline { | 23 namespace mandoline { |
21 | 24 |
22 // Sets up necessary state for aura when run with the viewmanager. | 25 // Sets up necessary state for aura when run with the viewmanager. |
23 class AuraInit { | 26 class AuraInit { |
24 public: | 27 public: |
25 AuraInit(mojo::View* root, mojo::Shell* shell); | 28 AuraInit(mus::View* root, mojo::Shell* shell); |
26 ~AuraInit(); | 29 ~AuraInit(); |
27 | 30 |
28 private: | 31 private: |
29 void InitializeResources(mojo::Shell* shell); | 32 void InitializeResources(mojo::Shell* shell); |
30 | 33 |
31 ui::mojo::UIInit ui_init_; | 34 ui::mojo::UIInit ui_init_; |
32 | 35 |
33 #if defined(OS_LINUX) && !defined(OS_ANDROID) | 36 #if defined(OS_LINUX) && !defined(OS_ANDROID) |
34 skia::RefPtr<font_service::FontLoader> font_loader_; | 37 skia::RefPtr<font_service::FontLoader> font_loader_; |
35 #endif | 38 #endif |
36 | 39 |
37 DISALLOW_COPY_AND_ASSIGN(AuraInit); | 40 DISALLOW_COPY_AND_ASSIGN(AuraInit); |
38 }; | 41 }; |
39 | 42 |
40 } // namespace mandoline | 43 } // namespace mandoline |
41 | 44 |
42 #endif // MANDOLINE_UI_AURA_AURA_INIT_H_ | 45 #endif // MANDOLINE_UI_AURA_AURA_INIT_H_ |
OLD | NEW |