OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "mojo/aura/aura_init.h" | 5 #include "mojo/aura/aura_init.h" |
6 | 6 |
7 #include "mojo/aura/screen_mojo.h" | 7 #include "mojo/aura/screen_mojo.h" |
8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 | 11 |
12 AuraInit::AuraInit() { | 12 AuraInit::AuraInit() { |
13 aura::Env::CreateInstance(false); | 13 aura::Env::CreateInstance(false); |
14 | 14 |
15 screen_.reset(ScreenMojo::Create()); | 15 screen_.reset(ScreenMojo::Create()); |
16 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen_.get()); | 16 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen_.get()); |
17 } | 17 } |
18 | 18 |
19 AuraInit::~AuraInit() { | 19 AuraInit::~AuraInit() { |
20 } | 20 } |
21 | 21 |
22 } // namespace mojo | 22 } // namespace mojo |
OLD | NEW |