Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: trunk/src/athena/main/athena_launcher.cc

Issue 497013002: Revert 291221 "Athena: Adding basic resource management framewor..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/athena/content/web_activity.cc ('k') | trunk/src/athena/main/athena_main.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
10 #include "athena/content/public/content_activity_factory.h" 9 #include "athena/content/public/content_activity_factory.h"
11 #include "athena/content/public/content_app_model_builder.h" 10 #include "athena/content/public/content_app_model_builder.h"
12 #include "athena/home/public/home_card.h" 11 #include "athena/home/public/home_card.h"
13 #include "athena/home/public/home_card.h" 12 #include "athena/home/public/home_card.h"
14 #include "athena/input/public/input_manager.h" 13 #include "athena/input/public/input_manager.h"
15 #include "athena/main/debug/debug_window.h" 14 #include "athena/main/debug/debug_window.h"
16 #include "athena/main/placeholder.h" 15 #include "athena/main/placeholder.h"
17 #include "athena/main/placeholder.h" 16 #include "athena/main/placeholder.h"
18 #include "athena/main/url_search_provider.h" 17 #include "athena/main/url_search_provider.h"
19 #include "athena/screen/public/screen_manager.h" 18 #include "athena/screen/public/screen_manager.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 112
114 aura::client::SetVisibilityClient(root_window, 113 aura::client::SetVisibilityClient(root_window,
115 env_state->visibility_client.get()); 114 env_state->visibility_client.get());
116 115
117 athena::SystemUI::Create( 116 athena::SystemUI::Create(
118 content::BrowserThread::GetMessageLoopProxyForThread( 117 content::BrowserThread::GetMessageLoopProxyForThread(
119 content::BrowserThread::FILE)); 118 content::BrowserThread::FILE));
120 athena::InputManager::Create()->OnRootWindowCreated(root_window); 119 athena::InputManager::Create()->OnRootWindowCreated(root_window);
121 athena::ScreenManager::Create(delegate, root_window); 120 athena::ScreenManager::Create(delegate, root_window);
122 athena::WindowManager::Create(); 121 athena::WindowManager::Create();
123 athena::AppRegistry::Create();
124 SetupBackgroundImage(); 122 SetupBackgroundImage();
125 123
126 athena::ScreenManager::Get()->GetContext()->SetProperty( 124 athena::ScreenManager::Get()->GetContext()->SetProperty(
127 kAthenaEnvStateKey, env_state); 125 kAthenaEnvStateKey, env_state);
128 } 126 }
129 127
130 void StartAthenaSessionWithContext(content::BrowserContext* context) { 128 void StartAthenaSessionWithContext(content::BrowserContext* context) {
131 StartAthenaSession(new athena::ContentActivityFactory(), 129 StartAthenaSession(new athena::ContentActivityFactory(),
132 new athena::ContentAppModelBuilder(context)); 130 new athena::ContentAppModelBuilder(context));
133 athena::VirtualKeyboardManager::Create(context); 131 athena::VirtualKeyboardManager::Create(context);
(...skipping 12 matching lines...) Expand all
146 athena::AppModelBuilder* app_model_builder) { 144 athena::AppModelBuilder* app_model_builder) {
147 athena::HomeCard::Create(app_model_builder); 145 athena::HomeCard::Create(app_model_builder);
148 athena::ActivityManager::Create(); 146 athena::ActivityManager::Create();
149 athena::ActivityFactory::RegisterActivityFactory(activity_factory); 147 athena::ActivityFactory::RegisterActivityFactory(activity_factory);
150 } 148 }
151 149
152 void ShutdownAthena() { 150 void ShutdownAthena() {
153 athena::ActivityFactory::Shutdown(); 151 athena::ActivityFactory::Shutdown();
154 athena::ActivityManager::Shutdown(); 152 athena::ActivityManager::Shutdown();
155 athena::HomeCard::Shutdown(); 153 athena::HomeCard::Shutdown();
156 athena::AppRegistry::ShutDown();
157 athena::WindowManager::Shutdown(); 154 athena::WindowManager::Shutdown();
158 athena::ScreenManager::Shutdown(); 155 athena::ScreenManager::Shutdown();
159 athena::InputManager::Shutdown(); 156 athena::InputManager::Shutdown();
160 athena::SystemUI::Shutdown(); 157 athena::SystemUI::Shutdown();
161 158
162 delete views::ViewsDelegate::views_delegate; 159 delete views::ViewsDelegate::views_delegate;
163 } 160 }
164 161
165 } // namespace athena 162 } // namespace athena
OLDNEW
« no previous file with comments | « trunk/src/athena/content/web_activity.cc ('k') | trunk/src/athena/main/athena_main.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698