| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ | 5 #ifndef ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ |
| 6 #define ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ | 6 #define ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 namespace base { | 22 namespace base { |
| 23 class SequencedWorkerPool; | 23 class SequencedWorkerPool; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace chromeos { | 26 namespace chromeos { |
| 27 namespace system { | 27 namespace system { |
| 28 class ScopedFakeStatisticsProvider; | 28 class ScopedFakeStatisticsProvider; |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace service_manager { |
| 33 class ServiceContext; |
| 34 } |
| 35 |
| 32 namespace views { | 36 namespace views { |
| 33 class AuraInit; | 37 class AuraInit; |
| 34 class SurfaceContextFactory; | 38 class SurfaceContextFactory; |
| 35 } | 39 } |
| 36 | 40 |
| 37 namespace ui { | 41 namespace ui { |
| 38 class Event; | 42 class Event; |
| 39 class GpuService; | 43 class GpuService; |
| 40 class WindowTreeClient; | 44 class WindowTreeClient; |
| 41 } | 45 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 65 | 69 |
| 66 void InitWindowManager( | 70 void InitWindowManager( |
| 67 std::unique_ptr<ui::WindowTreeClient> window_tree_client, | 71 std::unique_ptr<ui::WindowTreeClient> window_tree_client, |
| 68 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool); | 72 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool); |
| 69 | 73 |
| 70 // Initializes lower-level OS-specific components (e.g. D-Bus services). | 74 // Initializes lower-level OS-specific components (e.g. D-Bus services). |
| 71 void InitializeComponents(); | 75 void InitializeComponents(); |
| 72 void ShutdownComponents(); | 76 void ShutdownComponents(); |
| 73 | 77 |
| 74 // service_manager::Service: | 78 // service_manager::Service: |
| 75 void OnStart(const service_manager::ServiceInfo& info) override; | 79 void OnStart(service_manager::ServiceContext* context) override; |
| 76 bool OnConnect(const service_manager::ServiceInfo& remote_info, | 80 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
| 77 service_manager::InterfaceRegistry* registry) override; | 81 service_manager::InterfaceRegistry* registry) override; |
| 78 | 82 |
| 79 // session::mojom::ScreenlockStateListener: | 83 // session::mojom::ScreenlockStateListener: |
| 80 void ScreenlockStateChanged(bool locked) override; | 84 void ScreenlockStateChanged(bool locked) override; |
| 81 | 85 |
| 86 service_manager::ServiceContext* context_ = nullptr; |
| 87 |
| 82 tracing::Provider tracing_; | 88 tracing::Provider tracing_; |
| 83 | 89 |
| 84 std::unique_ptr<views::AuraInit> aura_init_; | 90 std::unique_ptr<views::AuraInit> aura_init_; |
| 85 std::unique_ptr<NativeWidgetFactoryMus> native_widget_factory_mus_; | 91 std::unique_ptr<NativeWidgetFactoryMus> native_widget_factory_mus_; |
| 86 | 92 |
| 87 std::unique_ptr<ui::GpuService> gpu_service_; | 93 std::unique_ptr<ui::GpuService> gpu_service_; |
| 88 std::unique_ptr<views::SurfaceContextFactory> compositor_context_factory_; | 94 std::unique_ptr<views::SurfaceContextFactory> compositor_context_factory_; |
| 89 std::unique_ptr<WindowManager> window_manager_; | 95 std::unique_ptr<WindowManager> window_manager_; |
| 90 | 96 |
| 91 // A blocking pool used by the WindowManager's shell; not used in tests. | 97 // A blocking pool used by the WindowManager's shell; not used in tests. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 102 statistics_provider_; | 108 statistics_provider_; |
| 103 #endif | 109 #endif |
| 104 | 110 |
| 105 DISALLOW_COPY_AND_ASSIGN(WindowManagerApplication); | 111 DISALLOW_COPY_AND_ASSIGN(WindowManagerApplication); |
| 106 }; | 112 }; |
| 107 | 113 |
| 108 } // namespace mus | 114 } // namespace mus |
| 109 } // namespace ash | 115 } // namespace ash |
| 110 | 116 |
| 111 #endif // ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ | 117 #endif // ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ |
| OLD | NEW |