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

Side by Side Diff: ash/mus/window_manager_application.h

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 | « ash/mus/window_manager.cc ('k') | ash/mus/window_manager_application.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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 namespace ash { 45 namespace ash {
46 namespace mus { 46 namespace mus {
47 47
48 class AcceleratorRegistrarImpl; 48 class AcceleratorRegistrarImpl;
49 class NativeWidgetFactoryMus; 49 class NativeWidgetFactoryMus;
50 class NetworkConnectDelegateMus; 50 class NetworkConnectDelegateMus;
51 class WindowManager; 51 class WindowManager;
52 52
53 // Hosts the window manager and the ash system user interface for mash. 53 // Hosts the window manager and the ash system user interface for mash.
54 class WindowManagerApplication 54 class WindowManagerApplication
55 : public shell::Service, 55 : public service_manager::Service,
56 public shell::InterfaceFactory<mojom::WallpaperController>, 56 public service_manager::InterfaceFactory<mojom::WallpaperController>,
57 public shell::InterfaceFactory<ui::mojom::AcceleratorRegistrar>, 57 public service_manager::InterfaceFactory<ui::mojom::AcceleratorRegistrar>,
58 public mash::session::mojom::ScreenlockStateListener { 58 public mash::session::mojom::ScreenlockStateListener {
59 public: 59 public:
60 WindowManagerApplication(); 60 WindowManagerApplication();
61 ~WindowManagerApplication() override; 61 ~WindowManagerApplication() override;
62 62
63 WindowManager* window_manager() { return window_manager_.get(); } 63 WindowManager* window_manager() { return window_manager_.get(); }
64 64
65 mash::session::mojom::Session* session() { return session_.get(); } 65 mash::session::mojom::Session* session() { return session_.get(); }
66 66
67 private: 67 private:
68 friend class WmTestBase; 68 friend class WmTestBase;
69 friend class WmTestHelper; 69 friend class WmTestHelper;
70 70
71 void OnAcceleratorRegistrarDestroyed(AcceleratorRegistrarImpl* registrar); 71 void OnAcceleratorRegistrarDestroyed(AcceleratorRegistrarImpl* registrar);
72 72
73 void InitWindowManager( 73 void InitWindowManager(
74 std::unique_ptr<ui::WindowTreeClient> window_tree_client, 74 std::unique_ptr<ui::WindowTreeClient> window_tree_client,
75 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool); 75 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool);
76 76
77 // Initializes lower-level OS-specific components (e.g. D-Bus services). 77 // Initializes lower-level OS-specific components (e.g. D-Bus services).
78 void InitializeComponents(); 78 void InitializeComponents();
79 void ShutdownComponents(); 79 void ShutdownComponents();
80 80
81 // shell::Service: 81 // service_manager::Service:
82 void OnStart(const shell::Identity& identity) override; 82 void OnStart(const service_manager::Identity& identity) override;
83 bool OnConnect(const shell::Identity& remote_identity, 83 bool OnConnect(const service_manager::Identity& remote_identity,
84 shell::InterfaceRegistry* registry) override; 84 service_manager::InterfaceRegistry* registry) override;
85 85
86 // InterfaceFactory<mojom::WallpaperController>: 86 // InterfaceFactory<mojom::WallpaperController>:
87 void Create(const shell::Identity& remote_identity, 87 void Create(const service_manager::Identity& remote_identity,
88 mojom::WallpaperControllerRequest request) override; 88 mojom::WallpaperControllerRequest request) override;
89 89
90 // shell::InterfaceFactory<ui::mojom::AcceleratorRegistrar>: 90 // service_manager::InterfaceFactory<ui::mojom::AcceleratorRegistrar>:
91 void Create(const shell::Identity& remote_identity, 91 void Create(const service_manager::Identity& remote_identity,
92 ui::mojom::AcceleratorRegistrarRequest request) override; 92 ui::mojom::AcceleratorRegistrarRequest request) override;
93 93
94 // session::mojom::ScreenlockStateListener: 94 // session::mojom::ScreenlockStateListener:
95 void ScreenlockStateChanged(bool locked) override; 95 void ScreenlockStateChanged(bool locked) override;
96 96
97 tracing::Provider tracing_; 97 tracing::Provider tracing_;
98 98
99 std::unique_ptr<views::AuraInit> aura_init_; 99 std::unique_ptr<views::AuraInit> aura_init_;
100 std::unique_ptr<NativeWidgetFactoryMus> native_widget_factory_mus_; 100 std::unique_ptr<NativeWidgetFactoryMus> native_widget_factory_mus_;
101 101
(...skipping 19 matching lines...) Expand all
121 statistics_provider_; 121 statistics_provider_;
122 #endif 122 #endif
123 123
124 DISALLOW_COPY_AND_ASSIGN(WindowManagerApplication); 124 DISALLOW_COPY_AND_ASSIGN(WindowManagerApplication);
125 }; 125 };
126 126
127 } // namespace mus 127 } // namespace mus
128 } // namespace ash 128 } // namespace ash
129 129
130 #endif // ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ 130 #endif // ASH_MUS_WINDOW_MANAGER_APPLICATION_H_
OLDNEW
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ash/mus/window_manager_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698