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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 class VirtualKeyboardObserver; | 56 class VirtualKeyboardObserver; |
57 | 57 |
58 // Athena's env state. | 58 // Athena's env state. |
59 struct AthenaEnvState { | 59 struct AthenaEnvState { |
60 scoped_ptr< ::wm::VisibilityController> visibility_client; | 60 scoped_ptr< ::wm::VisibilityController> visibility_client; |
61 scoped_ptr<VirtualKeyboardObserver> virtual_keyboard_observer; | 61 scoped_ptr<VirtualKeyboardObserver> virtual_keyboard_observer; |
62 }; | 62 }; |
63 | 63 |
64 DEFINE_OWNED_WINDOW_PROPERTY_KEY(athena::AthenaEnvState, | 64 DEFINE_OWNED_WINDOW_PROPERTY_KEY(athena::AthenaEnvState, |
65 kAthenaEnvStateKey, | 65 kAthenaEnvStateKey, |
66 NULL); | 66 nullptr); |
67 | 67 |
68 // This class observes the change of the virtual keyboard and distribute the | 68 // This class observes the change of the virtual keyboard and distribute the |
69 // change to appropriate modules of athena. | 69 // change to appropriate modules of athena. |
70 // TODO(oshima): move the VK bounds logic to screen manager. | 70 // TODO(oshima): move the VK bounds logic to screen manager. |
71 class VirtualKeyboardObserver : public keyboard::KeyboardControllerObserver { | 71 class VirtualKeyboardObserver : public keyboard::KeyboardControllerObserver { |
72 public: | 72 public: |
73 VirtualKeyboardObserver() { | 73 VirtualKeyboardObserver() { |
74 keyboard::KeyboardController::GetInstance()->AddObserver(this); | 74 keyboard::KeyboardController::GetInstance()->AddObserver(this); |
75 } | 75 } |
76 | 76 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 athena::SystemUI::Shutdown(); | 169 athena::SystemUI::Shutdown(); |
170 athena::WindowManager::Shutdown(); | 170 athena::WindowManager::Shutdown(); |
171 athena::ScreenManager::Shutdown(); | 171 athena::ScreenManager::Shutdown(); |
172 athena::InputManager::Shutdown(); | 172 athena::InputManager::Shutdown(); |
173 athena::AthenaEnv::Shutdown(); | 173 athena::AthenaEnv::Shutdown(); |
174 | 174 |
175 ShutdownAthenaViewsDelegate(); | 175 ShutdownAthenaViewsDelegate(); |
176 } | 176 } |
177 | 177 |
178 } // namespace athena | 178 } // namespace athena |
OLD | NEW |