| 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 "ui/mojo/init/ui_init.h" | 8 #include "ui/mojo/init/ui_init.h" |
| 9 | 9 |
| 10 namespace aura { |
| 11 class Env; |
| 12 } |
| 13 |
| 10 namespace mojo { | 14 namespace mojo { |
| 11 class Shell; | 15 class Shell; |
| 12 class View; | 16 class View; |
| 13 } | 17 } |
| 14 | 18 |
| 15 namespace mandoline { | 19 namespace mandoline { |
| 16 | 20 |
| 17 // Sets up necessary state for aura when run with the viewmanager. | 21 // Sets up necessary state for aura when run with the viewmanager. |
| 18 class AuraInit { | 22 class AuraInit { |
| 19 public: | 23 public: |
| 20 AuraInit(mojo::View* root, mojo::Shell* shell); | 24 AuraInit(mojo::View* root, mojo::Shell* shell); |
| 21 ~AuraInit(); | 25 ~AuraInit(); |
| 22 | 26 |
| 23 private: | 27 private: |
| 24 void InitializeResources(mojo::Shell* shell); | 28 void InitializeResources(mojo::Shell* shell); |
| 25 | 29 |
| 30 scoped_ptr<aura::Env> env_; |
| 26 ui::mojo::UIInit ui_init_; | 31 ui::mojo::UIInit ui_init_; |
| 27 | 32 |
| 28 DISALLOW_COPY_AND_ASSIGN(AuraInit); | 33 DISALLOW_COPY_AND_ASSIGN(AuraInit); |
| 29 }; | 34 }; |
| 30 | 35 |
| 31 } // namespace mandoline | 36 } // namespace mandoline |
| 32 | 37 |
| 33 #endif // MANDOLINE_UI_AURA_AURA_INIT_H_ | 38 #endif // MANDOLINE_UI_AURA_AURA_INIT_H_ |
| OLD | NEW |