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

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

Issue 505273002: Move app_shell specific impl from athena_lib to athena_shell_lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « athena/content/shell/shell_app_activity.cc ('k') | athena/main/athena_main.cc » ('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" 9 #include "athena/content/public/app_registry.h"
10 #include "athena/content/public/content_activity_factory.h" 10 #include "athena/content/public/content_activity_factory_creator.h"
11 #include "athena/content/public/content_app_model_builder.h" 11 #include "athena/content/public/content_app_model_builder.h"
12 #include "athena/env/public/athena_env.h" 12 #include "athena/env/public/athena_env.h"
13 #include "athena/extensions/public/extensions_delegate.h" 13 #include "athena/extensions/public/extensions_delegate.h"
14 #include "athena/home/public/home_card.h" 14 #include "athena/home/public/home_card.h"
15 #include "athena/home/public/home_card.h"
16 #include "athena/input/public/input_manager.h" 15 #include "athena/input/public/input_manager.h"
17 #include "athena/main/debug/debug_window.h" 16 #include "athena/main/debug/debug_window.h"
18 #include "athena/main/placeholder.h" 17 #include "athena/main/placeholder.h"
19 #include "athena/main/placeholder.h" 18 #include "athena/main/placeholder.h"
20 #include "athena/main/url_search_provider.h" 19 #include "athena/main/url_search_provider.h"
21 #include "athena/screen/public/screen_manager.h" 20 #include "athena/screen/public/screen_manager.h"
22 #include "athena/screen/public/screen_manager.h" 21 #include "athena/screen/public/screen_manager.h"
23 #include "athena/system/public/system_ui.h" 22 #include "athena/system/public/system_ui.h"
24 #include "athena/virtual_keyboard/public/virtual_keyboard_manager.h" 23 #include "athena/virtual_keyboard/public/virtual_keyboard_manager.h"
25 #include "athena/wm/public/window_manager.h" 24 #include "athena/wm/public/window_manager.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 athena::ScreenManager::Create(root_window); 123 athena::ScreenManager::Create(root_window);
125 athena::WindowManager::Create(); 124 athena::WindowManager::Create();
126 athena::AppRegistry::Create(); 125 athena::AppRegistry::Create();
127 SetupBackgroundImage(); 126 SetupBackgroundImage();
128 127
129 athena::ScreenManager::Get()->GetContext()->SetProperty( 128 athena::ScreenManager::Get()->GetContext()->SetProperty(
130 kAthenaEnvStateKey, env_state); 129 kAthenaEnvStateKey, env_state);
131 } 130 }
132 131
133 void StartAthenaSessionWithContext(content::BrowserContext* context) { 132 void StartAthenaSessionWithContext(content::BrowserContext* context) {
134 StartAthenaSession(new athena::ContentActivityFactory(), 133 StartAthenaSession(athena::CreateContentActivityFactory(),
135 new athena::ContentAppModelBuilder(context)); 134 new athena::ContentAppModelBuilder(context));
136 athena::VirtualKeyboardManager::Create(context); 135 athena::VirtualKeyboardManager::Create(context);
137 athena::HomeCard::Get()->RegisterSearchProvider( 136 athena::HomeCard::Get()->RegisterSearchProvider(
138 new athena::UrlSearchProvider(context)); 137 new athena::UrlSearchProvider(context));
139 AthenaEnvState* env_state = 138 AthenaEnvState* env_state =
140 athena::ScreenManager::Get()->GetContext()->GetProperty( 139 athena::ScreenManager::Get()->GetContext()->GetProperty(
141 kAthenaEnvStateKey); 140 kAthenaEnvStateKey);
142 141
143 env_state->virtual_keyboard_observer.reset(new VirtualKeyboardObserver); 142 env_state->virtual_keyboard_observer.reset(new VirtualKeyboardObserver);
144 CreateTestPages(context); 143 CreateTestPages(context);
(...skipping 16 matching lines...) Expand all
161 athena::ScreenManager::Shutdown(); 160 athena::ScreenManager::Shutdown();
162 athena::InputManager::Shutdown(); 161 athena::InputManager::Shutdown();
163 athena::SystemUI::Shutdown(); 162 athena::SystemUI::Shutdown();
164 athena::ExtensionsDelegate::Shutdown(); 163 athena::ExtensionsDelegate::Shutdown();
165 athena::AthenaEnv::Shutdown(); 164 athena::AthenaEnv::Shutdown();
166 165
167 delete views::ViewsDelegate::views_delegate; 166 delete views::ViewsDelegate::views_delegate;
168 } 167 }
169 168
170 } // namespace athena 169 } // namespace athena
OLDNEW
« no previous file with comments | « athena/content/shell/shell_app_activity.cc ('k') | athena/main/athena_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698