| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef MANDOLINE_UI_AURA_AURA_INIT_H_ | |
| 6 #define MANDOLINE_UI_AURA_AURA_INIT_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "skia/ext/refptr.h" | |
| 11 #include "ui/mojo/init/ui_init.h" | |
| 12 | |
| 13 namespace font_service { | |
| 14 class FontLoader; | |
| 15 } | |
| 16 | |
| 17 namespace mojo { | |
| 18 class Shell; | |
| 19 } | |
| 20 | |
| 21 namespace mus { | |
| 22 class View; | |
| 23 } | |
| 24 | |
| 25 namespace mandoline { | |
| 26 | |
| 27 // Sets up necessary state for aura when run with the viewmanager. | |
| 28 // TODO(sky): move this out of mandoline. | |
| 29 // |resource_file| is the path to the apk file containing the resources. | |
| 30 class AuraInit { | |
| 31 public: | |
| 32 AuraInit(mus::View* root, | |
| 33 mojo::Shell* shell, | |
| 34 const std::string& resource_file); | |
| 35 ~AuraInit(); | |
| 36 | |
| 37 private: | |
| 38 void InitializeResources(mojo::Shell* shell); | |
| 39 | |
| 40 ui::mojo::UIInit ui_init_; | |
| 41 | |
| 42 #if defined(OS_LINUX) && !defined(OS_ANDROID) | |
| 43 skia::RefPtr<font_service::FontLoader> font_loader_; | |
| 44 #endif | |
| 45 | |
| 46 const std::string resource_file_; | |
| 47 | |
| 48 DISALLOW_COPY_AND_ASSIGN(AuraInit); | |
| 49 }; | |
| 50 | |
| 51 } // namespace mandoline | |
| 52 | |
| 53 #endif // MANDOLINE_UI_AURA_AURA_INIT_H_ | |
| OLD | NEW |