| OLD | NEW |
| 1 // Copyright 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 "athena/main/athena_launcher.h" | 5 #include "athena/main/athena_launcher.h" |
| 6 | 6 |
| 7 #include "athena/activity/public/activity_factory.h" | 7 #include "athena/activity/public/activity_factory.h" |
| 8 #include "athena/activity/public/activity_manager.h" | 8 #include "athena/activity/public/activity_manager.h" |
| 9 #include "athena/content/public/app_registry.h" |
| 9 #include "athena/home/public/home_card.h" | 10 #include "athena/home/public/home_card.h" |
| 10 #include "athena/input/public/input_manager.h" | 11 #include "athena/input/public/input_manager.h" |
| 11 #include "athena/main/placeholder.h" | 12 #include "athena/main/placeholder.h" |
| 12 #include "athena/screen/public/screen_manager.h" | 13 #include "athena/screen/public/screen_manager.h" |
| 13 #include "athena/system/public/system_ui.h" | 14 #include "athena/system/public/system_ui.h" |
| 14 #include "athena/wm/public/window_manager.h" | 15 #include "athena/wm/public/window_manager.h" |
| 15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 17 #include "ui/aura/window_property.h" | 18 #include "ui/aura/window_property.h" |
| 18 #include "ui/views/views_delegate.h" | 19 #include "ui/views/views_delegate.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 69 |
| 69 root_window_state->visibility_client.reset(new ::wm::VisibilityController); | 70 root_window_state->visibility_client.reset(new ::wm::VisibilityController); |
| 70 aura::client::SetVisibilityClient(root_window, | 71 aura::client::SetVisibilityClient(root_window, |
| 71 root_window_state->visibility_client.get()); | 72 root_window_state->visibility_client.get()); |
| 72 | 73 |
| 73 athena::SystemUI::Create( | 74 athena::SystemUI::Create( |
| 74 content::BrowserThread::GetMessageLoopProxyForThread( | 75 content::BrowserThread::GetMessageLoopProxyForThread( |
| 75 content::BrowserThread::FILE)); | 76 content::BrowserThread::FILE)); |
| 76 athena::InputManager::Create()->OnRootWindowCreated(root_window); | 77 athena::InputManager::Create()->OnRootWindowCreated(root_window); |
| 77 athena::ScreenManager::Create(root_window); | 78 athena::ScreenManager::Create(root_window); |
| 79 athena::AppRegistry::Create(); |
| 78 athena::WindowManager::Create(); | 80 athena::WindowManager::Create(); |
| 79 athena::HomeCard::Create(app_model_builder); | 81 athena::HomeCard::Create(app_model_builder); |
| 80 athena::ActivityManager::Create(); | 82 athena::ActivityManager::Create(); |
| 81 athena::ActivityFactory::RegisterActivityFactory(activity_factory); | 83 athena::ActivityFactory::RegisterActivityFactory(activity_factory); |
| 82 SetupBackgroundImage(); | 84 SetupBackgroundImage(); |
| 83 } | 85 } |
| 84 | 86 |
| 85 void ShutdownAthena() { | 87 void ShutdownAthena() { |
| 86 athena::ActivityFactory::Shutdown(); | 88 athena::ActivityFactory::Shutdown(); |
| 87 athena::ActivityManager::Shutdown(); | 89 athena::ActivityManager::Shutdown(); |
| 88 athena::HomeCard::Shutdown(); | 90 athena::HomeCard::Shutdown(); |
| 89 athena::WindowManager::Shutdown(); | 91 athena::WindowManager::Shutdown(); |
| 92 athena::AppRegistry::ShutDown(); |
| 90 athena::ScreenManager::Shutdown(); | 93 athena::ScreenManager::Shutdown(); |
| 91 athena::InputManager::Shutdown(); | 94 athena::InputManager::Shutdown(); |
| 92 athena::SystemUI::Shutdown(); | 95 athena::SystemUI::Shutdown(); |
| 93 | 96 |
| 94 delete views::ViewsDelegate::views_delegate; | 97 delete views::ViewsDelegate::views_delegate; |
| 95 } | 98 } |
| 96 | 99 |
| 97 } // namespace athena | 100 } // namespace athena |
| OLD | NEW |