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/public/athena_launcher.h" | 5 #include "athena/main/public/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_creator.h" | 10 #include "athena/content/public/content_activity_factory_creator.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 command_line->AppendSwitch(app_list::switches::kEnableExperimentalAppList); | 93 command_line->AppendSwitch(app_list::switches::kEnableExperimentalAppList); |
94 command_line->AppendSwitch(switches::kEnableOverlayScrollbar); | 94 command_line->AppendSwitch(switches::kEnableOverlayScrollbar); |
95 | 95 |
96 // Enable vertical overscroll. | 96 // Enable vertical overscroll. |
97 command_line->AppendSwitchASCII(switches::kScrollEndEffect, "1"); | 97 command_line->AppendSwitchASCII(switches::kScrollEndEffect, "1"); |
98 | 98 |
99 #if defined(USE_X11) | 99 #if defined(USE_X11) |
100 ui::TouchFactory::SetTouchDeviceListFromCommandLine(); | 100 ui::TouchFactory::SetTouchDeviceListFromCommandLine(); |
101 #endif | 101 #endif |
102 | 102 |
103 views::ViewsDelegate::views_delegate = new AthenaViewsDelegate(); | 103 AthenaViewsDelegate::Create(); |
104 | 104 |
105 AthenaEnvState* env_state = new AthenaEnvState; | 105 AthenaEnvState* env_state = new AthenaEnvState; |
106 | 106 |
107 // Setup VisibilityClient | 107 // Setup VisibilityClient |
108 env_state->visibility_client.reset(new ::wm::VisibilityController); | 108 env_state->visibility_client.reset(new ::wm::VisibilityController); |
109 aura::Window* root_window = athena::AthenaEnv::Get()->GetHost()->window(); | 109 aura::Window* root_window = athena::AthenaEnv::Get()->GetHost()->window(); |
110 | 110 |
111 aura::client::SetVisibilityClient(root_window, | 111 aura::client::SetVisibilityClient(root_window, |
112 env_state->visibility_client.get()); | 112 env_state->visibility_client.get()); |
113 | 113 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 session_started = false; | 158 session_started = false; |
159 } | 159 } |
160 athena::AppRegistry::ShutDown(); | 160 athena::AppRegistry::ShutDown(); |
161 athena::WindowManager::Shutdown(); | 161 athena::WindowManager::Shutdown(); |
162 athena::SystemUI::Shutdown(); | 162 athena::SystemUI::Shutdown(); |
163 athena::ScreenManager::Shutdown(); | 163 athena::ScreenManager::Shutdown(); |
164 athena::InputManager::Shutdown(); | 164 athena::InputManager::Shutdown(); |
165 athena::ExtensionsDelegate::Shutdown(); | 165 athena::ExtensionsDelegate::Shutdown(); |
166 athena::AthenaEnv::Shutdown(); | 166 athena::AthenaEnv::Shutdown(); |
167 | 167 |
168 delete views::ViewsDelegate::views_delegate; | 168 AthenaViewsDelegate::Shutdown(); |
169 } | 169 } |
170 | 170 |
171 } // namespace athena | 171 } // namespace athena |
OLD | NEW |